Skip to content

Commit

Permalink
Adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaslinhares committed Jan 15, 2025
1 parent 1b1ac9d commit 813b073
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions temba/channels/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,8 @@ def test_claim_all(self):
self.assertEqual(response.context["channel_types"]["SOCIAL_MEDIA"][0].code, "D3C")
self.assertEqual(response.context["channel_types"]["SOCIAL_MEDIA"][1].code, "FBA")
self.assertEqual(response.context["channel_types"]["SOCIAL_MEDIA"][2].code, "IG")
self.assertEqual(response.context["channel_types"]["SOCIAL_MEDIA"][-2].code, "WC")
self.assertEqual(response.context["channel_types"]["SOCIAL_MEDIA"][-1].code, "ZVW")
self.assertEqual(response.context["channel_types"]["SOCIAL_MEDIA"][-2].code, "ZVW")
self.assertEqual(response.context["channel_types"]["SOCIAL_MEDIA"][-1].code, "TM")

self.admin.groups.add(Group.objects.get(name="Beta"))

Expand All @@ -612,8 +612,8 @@ def test_claim_all(self):
self.assertEqual(response.context["channel_types"]["SOCIAL_MEDIA"][0].code, "D3C")
self.assertEqual(response.context["channel_types"]["SOCIAL_MEDIA"][1].code, "FBA")
self.assertEqual(response.context["channel_types"]["SOCIAL_MEDIA"][2].code, "IG")
self.assertEqual(response.context["channel_types"]["SOCIAL_MEDIA"][-2].code, "WA")
self.assertEqual(response.context["channel_types"]["SOCIAL_MEDIA"][-1].code, "ZVW")
self.assertEqual(response.context["channel_types"]["SOCIAL_MEDIA"][-2].code, "ZVW")
self.assertEqual(response.context["channel_types"]["SOCIAL_MEDIA"][-1].code, "ZW")

def test_sync_unclaimed(self):
response = self.sync(self.unclaimed_channel, cmds=[])
Expand Down
2 changes: 1 addition & 1 deletion temba/flows/legacy/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ def test_migrate_sample_flows(self):
email_node = order_checker.get_definition()["nodes"][10]
email_action = email_node["actions"][1]

self.assertEqual(["admin@textit.com"], email_action["addresses"])
self.assertEqual(["admin@weni.ai"], email_action["addresses"])

def test_migrate_bad_group_names(self):
# This test makes sure that bad contact groups (< 25, etc) are migrated forward properly.
Expand Down

0 comments on commit 813b073

Please sign in to comment.