Skip to content

Commit

Permalink
fix: useragent regrex unit test for RC branch (#611)
Browse files Browse the repository at this point in the history
* [DI-2164] modify unit test for RC branch
  • Loading branch information
claudiachua committed Jul 13, 2022
1 parent e040196 commit 60e0505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/rest/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def tearDown(self):
def test_set_default_user_agent(self):
self.client.request('GET', 'https://api.twilio.com/')
request_header = self.client.http_client.last_request.headers['User-Agent']
self.assertRegex(request_header, r'^twilio-python\/[0-9.]+\s\(\w+\s\w+\)\sPython\/[^\s]+$')
self.assertRegex(request_header, r'^twilio-python\/[0-9.]+(-rc\.[0-9]+)?\s\(\w+\s\w+\)\sPython\/[^\s]+$')

def test_set_user_agent_extensions(self):
expected_user_agent_extensions = ['twilio-run/2.0.0-test', 'flex-plugin/3.4.0']
Expand Down

0 comments on commit 60e0505

Please sign in to comment.