mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-11 10:28:55 -04:00
pep8 fixes
no idea why the build/local pep8s weren't picking them up before. also excluded import order pep8
This commit is contained in:
@@ -6,6 +6,6 @@ pytest-cov==2.2.0
|
||||
coveralls==1.1
|
||||
mock==1.0.1
|
||||
moto==0.4.19
|
||||
flex==5.6.0
|
||||
flex==5.7.0
|
||||
freezegun==0.3.6
|
||||
requests-mock==0.7.0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[pep8]
|
||||
max-line-length = 120
|
||||
ignore = E402
|
||||
exclude = ./migrations,./venv,./venv3
|
||||
|
||||
|
||||
@@ -236,7 +236,8 @@ def test_send_user_sms_code(notify_api,
|
||||
headers=[('Content-Type', 'application/json'), auth_header])
|
||||
assert resp.status_code == 204
|
||||
assert mocked.call_count == 1
|
||||
encrypted = encryption.encrypt({'template': current_app.config['SMS_CODE_TEMPLATE_ID'],
|
||||
encrypted = encryption.encrypt({
|
||||
'template': current_app.config['SMS_CODE_TEMPLATE_ID'],
|
||||
'template_version': 1,
|
||||
'to': sample_user.mobile_number,
|
||||
'personalisation': {
|
||||
@@ -274,7 +275,8 @@ def test_send_user_code_for_sms_with_optional_to_field(notify_api,
|
||||
headers=[('Content-Type', 'application/json'), auth_header])
|
||||
|
||||
assert resp.status_code == 204
|
||||
encrypted = encryption.encrypt({'template': current_app.config['SMS_CODE_TEMPLATE_ID'],
|
||||
encrypted = encryption.encrypt({
|
||||
'template': current_app.config['SMS_CODE_TEMPLATE_ID'],
|
||||
'template_version': 1,
|
||||
'to': '+441119876757',
|
||||
'personalisation': {
|
||||
|
||||
Reference in New Issue
Block a user