Split generating authorization headers by type

In response to [1].

[1]: https://github.com/alphagov/notifications-api/pull/3300#discussion_r681653248
This commit is contained in:
Ben Thorner
2021-08-04 15:12:09 +01:00
parent 5a1636e41f
commit 0312e2a528
33 changed files with 526 additions and 512 deletions

View File

@@ -1,6 +1,6 @@
import json
from tests import create_authorization_header
from tests import create_admin_authorization_header
def test_create_event(notify_api):
@@ -11,7 +11,7 @@ def test_create_event(notify_api):
'data': {'something': 'random', 'in_fact': 'could be anything'}
}
path = '/events'
auth_header = create_authorization_header()
auth_header = create_admin_authorization_header()
headers = [('Content-Type', 'application/json'), auth_header]
response = client.post(
path,