Skip to content

Commit

Permalink
Tweak TST channel type to use EXT scheme URNs
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed Nov 18, 2024
1 parent 7c76153 commit 4f5a916
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions temba/channels/types/test/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ def test_claim(self):

self.assertIsNotNone(channel)
self.assertEqual(50, channel.tps)
self.assertEqual(["ext"], channel.schemes)
6 changes: 3 additions & 3 deletions temba/channels/types/test/type.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ class TestType(ChannelType):

code = "TST"
name = "Test"
category = ChannelType.Category.PHONE
schemes = [URN.TEL_SCHEME]
category = ChannelType.Category.API
schemes = [URN.EXTERNAL_SCHEME]

claim_blurb = _("Only staff users can see this option. Used for load testing.")
claim_blurb = _("Only staff users can see this option. Used for load testing. Uses ext URNs.")
claim_view = ClaimView

def is_available_to(self, org, user):
Expand Down

0 comments on commit 4f5a916

Please sign in to comment.