mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 14:08:24 -04:00
notify-api-412 use black to enforce python coding style
This commit is contained in:
@@ -2,15 +2,14 @@ from app.notify_client.events_api_client import EventsApiClient
|
||||
|
||||
|
||||
def test_events_client_calls_correct_api_endpoint(mocker):
|
||||
|
||||
expected_url = '/events'
|
||||
event_type = 'anything'
|
||||
event_data = {'does_not': 'matter'}
|
||||
expected_data = {'event_type': event_type, 'data': event_data}
|
||||
expected_url = "/events"
|
||||
event_type = "anything"
|
||||
event_data = {"does_not": "matter"}
|
||||
expected_data = {"event_type": event_type, "data": event_data}
|
||||
|
||||
client = EventsApiClient()
|
||||
|
||||
mock_post = mocker.patch('app.notify_client.events_api_client.EventsApiClient.post')
|
||||
mock_post = mocker.patch("app.notify_client.events_api_client.EventsApiClient.post")
|
||||
|
||||
client.create_event(event_type, event_data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user