Skip to content

Commit

Permalink
Run black
Browse files Browse the repository at this point in the history
  • Loading branch information
edudouglas committed Dec 14, 2018
1 parent 6a326cb commit edb3c23
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions temba/ivr/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2392,7 +2392,12 @@ def test_ivr_start_flow_with_imimobile(self):
ben = self.create_contact("Ben", "+12345")

with patch("requests.post") as mock_post:
mock_post.return_value = MockResponse(200, json.dumps(dict(status=0, description="Transaction Success", obdtransid="636804048676259138919810410133")))
mock_post.return_value = MockResponse(
200,
json.dumps(
dict(status=0, description="Transaction Success", obdtransid="636804048676259138919810410133")
),
)
run, = ivr_flow.start(groups=[], contacts=[ben])
call = IVRCall.objects.get(direction=IVRCall.OUTGOING)

Expand All @@ -2415,7 +2420,12 @@ def test_ivr_empty_with_imimobile(self):
ben = self.create_contact("Ben", "+12345")

with patch("requests.post") as mock_post:
mock_post.return_value = MockResponse(200, json.dumps(dict(status=0, description="Transaction Success", obdtransid="636804048676259138919810410133")))
mock_post.return_value = MockResponse(
200,
json.dumps(
dict(status=0, description="Transaction Success", obdtransid="636804048676259138919810410133")
),
)
run, = ivr_flow.start(groups=[], contacts=[ben])
call = IVRCall.objects.get(direction=IVRCall.OUTGOING)

Expand All @@ -2440,7 +2450,12 @@ def test_ivr_recording_with_imimobile(self):

contact = self.create_contact("Chuck D", number="+13603621737")
with patch("requests.post") as mock_post:
mock_post.return_value = MockResponse(200, json.dumps(dict(status=0, description="Transaction Success", obdtransid="636804048676259138919810410133")))
mock_post.return_value = MockResponse(
200,
json.dumps(
dict(status=0, description="Transaction Success", obdtransid="636804048676259138919810410133")
),
)

run, = flow.start([], [contact])
call = IVRCall.objects.get(direction=IVRCall.OUTGOING)
Expand Down

0 comments on commit edb3c23

Please sign in to comment.