Skip to content

Commit

Permalink
[#2681] Rename some tests (drop "Remove" for "Cancel")
Browse files Browse the repository at this point in the history
  • Loading branch information
pbanaszkiewicz committed Aug 4, 2024
1 parent 1f8bf00 commit 5945d4a
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from workshops.tests.base import TestBase


class TestAskForWebsiteRemoveReceiver(TestCase):
class TestAskForWebsiteCancelReceiver(TestCase):
def setUp(self) -> None:
self.ttt_organization = Organization.objects.create(
domain="carpentries.org", fullname="Instructor Training"
Expand Down Expand Up @@ -195,7 +195,7 @@ def test_multiple_emails_cancelled(
)


class TestAskForWebsiteRemoveIntegration(TestBase):
class TestAskForWebsiteCancelIntegration(TestBase):
@override_settings(FLAGS={"EMAIL_MODULE": [("boolean", True)]})
def test_integration(self) -> None:
# Arrange
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from workshops.tests.base import TestBase


class TestHostInstructorsIntroductionRemoveReceiver(TestCase):
class TestHostInstructorsIntroductionCancelReceiver(TestCase):
def setUp(self) -> None:
self.ttt_organization = Organization.objects.create(
domain="carpentries.org", fullname="Instructor Training"
Expand Down Expand Up @@ -215,7 +215,7 @@ def test_multiple_emails_cancelled(
)


class TestHostInstructorsIntroductionRemoveIntegration(TestBase):
class TestHostInstructorsIntroductionCancelIntegration(TestBase):
@override_settings(FLAGS={"EMAIL_MODULE": [("boolean", True)]})
def test_integration(self) -> None:
# Arrange
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from workshops.tests.base import TestBase


class TestInstructorTrainingApproachingRemoveReceiver(TestCase):
class TestInstructorTrainingApproachingCancelReceiver(TestCase):
def setUp(self) -> None:
self.ttt_organization = Organization.objects.create(
domain="carpentries.org", fullname="Instructor Training"
Expand Down Expand Up @@ -209,7 +209,7 @@ def test_multiple_emails_cancelled(
)


class TestInstructorTrainingApproachingReceiverRemoveIntegration(TestBase):
class TestInstructorTrainingApproachingCancelIntegration(TestBase):
@override_settings(FLAGS={"EMAIL_MODULE": [("boolean", True)]})
def test_integration(self) -> None:
# Arrange
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def test_integration(self) -> None:
self.assertEqual(latest_log.details, f"Updated {signal}")


class TestInstructorTrainingCompletedNotBadgedRemoveReceiverIntegration(TestBase):
class TestInstructorTrainingCompletedNotBadgedCancelIntegration(TestBase):
@override_settings(FLAGS={"EMAIL_MODULE": [("boolean", True)]})
def test_integration(self) -> None:
# Arrange
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def test_integration(self) -> None:
self.assertEqual(latest_log.details, f"Updated {signal}")


class TestNewMembershipOnboardingRemoveReceiverIntegration(TestBase):
class TestNewMembershipOnboardingCancelIntegration(TestBase):
@override_settings(FLAGS={"EMAIL_MODULE": [("boolean", True)]})
def test_integration(self) -> None:
# Arrange
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from workshops.tests.base import TestBase


class TestPostWorkshop7DaysRemoveReceiver(TestCase):
class TestPostWorkshop7DaysCancelReceiver(TestCase):
def setUp(self) -> None:
ttt_organization = Organization.objects.create(
domain="carpentries.org", fullname="Instructor Training"
Expand Down Expand Up @@ -204,7 +204,7 @@ def test_multiple_emails_cancelled(
)


class TestPostWorkshop7DaysRemoveIntegration(TestBase):
class TestPostWorkshop7DaysCancelIntegration(TestBase):
@override_settings(FLAGS={"EMAIL_MODULE": [("boolean", True)]})
def test_integration(self) -> None:
# Arrange
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from workshops.tests.base import TestBase


class TestHostInstructorsIntroductionRemoveReceiver(TestCase):
class TestHostInstructorsIntroductionCancelReceiver(TestCase):
def setUp(self) -> None:
self.ttt_organization = Organization.objects.create(
domain="carpentries.org", fullname="Instructor Training"
Expand Down Expand Up @@ -202,7 +202,7 @@ def test_multiple_emails_cancelled(
)


class TestInstructorTrainingApproachingReceiverRemoveIntegration(TestBase):
class TestInstructorTrainingApproachingCancelIntegration(TestBase):
@override_settings(FLAGS={"EMAIL_MODULE": [("boolean", True)]})
def test_integration(self) -> None:
# Arrange
Expand Down

0 comments on commit 5945d4a

Please sign in to comment.