Skip to content
Snippets Groups Projects
Verified Commit e8679567 authored by Duncan Macleod's avatar Duncan Macleod
Browse files

alerts.tests: updated mocks

mainly to mock out getting the internal phone number list
parent 0ea86150
No related branches found
No related tags found
1 merge request!17Added unit test configuration in gitlab-ci
...@@ -295,6 +295,8 @@ class TestTwimlUrl(GraceDbTestBase, SupereventCreateMixin): ...@@ -295,6 +295,8 @@ class TestTwimlUrl(GraceDbTestBase, SupereventCreateMixin):
@mock.patch('alerts.phone.twilio_client.messages.create') @mock.patch('alerts.phone.twilio_client.messages.create')
@mock.patch('alerts.phone.twilio_client.calls.create') @mock.patch('alerts.phone.twilio_client.calls.create')
@mock.patch('alerts.phone.twilio_client.incoming_phone_numbers.list',
lambda: [mock.Mock()])
class TestPhoneCallAndText(GraceDbTestBase, SupereventCreateMixin): class TestPhoneCallAndText(GraceDbTestBase, SupereventCreateMixin):
@classmethod @classmethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment