mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 15:46:07 -05:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user