mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 10:28:41 -04:00
Finally finished linting all the tests!
...Now to fix the ones I broke... :lolsob: Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
@@ -67,7 +67,7 @@ SAMPLE_DATA = {
|
||||
}
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
@pytest.fixture()
|
||||
def mock_get_orgs_and_services(mocker):
|
||||
return mocker.patch(
|
||||
"app.user_api_client.get_organizations_and_services_for_user",
|
||||
@@ -177,8 +177,8 @@ def test_choose_account_should_show_choose_accounts_page_if_no_services(
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"orgs_and_services, expected_headings",
|
||||
(
|
||||
("orgs_and_services", "expected_headings"),
|
||||
[
|
||||
(
|
||||
{"organizations": [], "services": []},
|
||||
[
|
||||
@@ -227,7 +227,7 @@ def test_choose_account_should_show_choose_accounts_page_if_no_services(
|
||||
"Trial mode services",
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
def test_choose_account_should_should_organizations_link_for_platform_admin(
|
||||
client_request,
|
||||
@@ -302,10 +302,10 @@ def test_choose_account_should_not_show_back_to_service_link_if_not_signed_in(
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"active",
|
||||
(
|
||||
[
|
||||
False,
|
||||
pytest.param(True),
|
||||
),
|
||||
],
|
||||
)
|
||||
def test_choose_account_should_not_show_back_to_service_link_if_service_archived(
|
||||
client_request,
|
||||
|
||||
@@ -14,7 +14,7 @@ def user_with_orgs_and_services(num_orgs, num_services, platform_admin=False):
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"num_orgs,num_services,endpoint,endpoint_kwargs",
|
||||
("num_orgs", "num_services", "endpoint", "endpoint_kwargs"),
|
||||
[
|
||||
(0, 0, ".choose_account", {}),
|
||||
(0, 2, ".choose_account", {}),
|
||||
|
||||
Reference in New Issue
Block a user