notify-api-412 use black to enforce python coding style

This commit is contained in:
Kenneth Kehl
2023-08-25 09:12:23 -07:00
parent c6eb007386
commit 8c9721d8e2
201 changed files with 31660 additions and 28105 deletions

View File

@@ -6,26 +6,23 @@ from tests.conftest import SERVICE_ONE_ID
@pytest.mark.parametrize(
'job_status, num_notifications_created, expected_still_processing',
"job_status, num_notifications_created, expected_still_processing",
[
('scheduled', 0, True),
('cancelled', 10, True),
('finished', 5, True),
('finished', 10, False),
]
("scheduled", 0, True),
("cancelled", 10, True),
("finished", 5, True),
("finished", 10, False),
],
)
def test_still_processing(
notify_admin,
job_status,
num_notifications_created,
expected_still_processing
notify_admin, job_status, num_notifications_created, expected_still_processing
):
json = job_json(
service_id=SERVICE_ONE_ID,
created_by=user_json(),
notification_count=10,
notifications_requested=num_notifications_created,
job_status=job_status
job_status=job_status,
)
job = Job(json)
assert job.still_processing == expected_still_processing