mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-23 02:03:49 -04:00
Refactor go live tags into service model
Since this function only takes one argument, a service, it might as well be a method of the service.
This commit is contained in:
@@ -1555,9 +1555,9 @@ def test_ready_to_go_live(
|
||||
'id': SERVICE_ONE_ID
|
||||
}).go_live_checklist_completed_as_yes_no == expected_readyness
|
||||
|
||||
assert list(app.main.views.service_settings._get_request_to_go_live_tags(
|
||||
app.models.service.Service({'id': SERVICE_ONE_ID})
|
||||
)) == expected_tags
|
||||
assert app.models.service.Service(
|
||||
{'id': SERVICE_ONE_ID}
|
||||
).request_to_go_live_tags == expected_tags
|
||||
|
||||
|
||||
@pytest.mark.parametrize('route', [
|
||||
|
||||
Reference in New Issue
Block a user