diff --git a/tests/unit/test_apikey.py b/tests/unit/test_apikey.py index fe800af..22ebb3c 100644 --- a/tests/unit/test_apikey.py +++ b/tests/unit/test_apikey.py @@ -66,12 +66,14 @@ def test_manage_jobs_set_to_true(self, apikey_config, name, url): z.create(name, permissions={"monitoring": {"manage_jobs": True}}) - expected_perms = {"monitoring": { - "manage_jobs": False, - "create_jobs": True, - "update_jobs": True, - "delete_jobs": True, - }} + expected_perms = { + "monitoring": { + "manage_jobs": False, + "create_jobs": True, + "update_jobs": True, + "delete_jobs": True, + } + } z._make_request.assert_called_once_with( "PUT", url, @@ -140,12 +142,14 @@ def test_mange_jobs_set_to_true( ip_whitelist=ip_whitelist, permissions=perms, ) - expected_perms = {"monitoring": { - "manage_jobs": False, - "create_jobs": True, - "update_jobs": True, - "delete_jobs": True, - }} + expected_perms = { + "monitoring": { + "manage_jobs": False, + "create_jobs": True, + "update_jobs": True, + "delete_jobs": True, + } + } z._make_request.assert_called_once_with( "POST", url, diff --git a/tests/unit/test_team.py b/tests/unit/test_team.py index 49614c0..78ce5d6 100644 --- a/tests/unit/test_team.py +++ b/tests/unit/test_team.py @@ -66,12 +66,14 @@ def test_manage_jobs_set_to_true(self, team_config, name, url): z.create(name, permissions={"monitoring": {"manage_jobs": True}}) - expected_perms = {"monitoring": { - "manage_jobs": False, - "create_jobs": True, - "update_jobs": True, - "delete_jobs": True, - }} + expected_perms = { + "monitoring": { + "manage_jobs": False, + "create_jobs": True, + "update_jobs": True, + "delete_jobs": True, + } + } z._make_request.assert_called_once_with( "PUT", url, @@ -135,12 +137,14 @@ def test_manage_jobs_set_to_true( z.update( team_id, name=name, ip_whitelist=ip_whitelist, permissions=perms ) - expected_perms = {"monitoring": { - "manage_jobs": False, - "create_jobs": True, - "update_jobs": True, - "delete_jobs": True, - }} + expected_perms = { + "monitoring": { + "manage_jobs": False, + "create_jobs": True, + "update_jobs": True, + "delete_jobs": True, + } + } z._make_request.assert_called_once_with( "POST", url, diff --git a/tests/unit/test_user.py b/tests/unit/test_user.py index a36b95d..a0040a8 100644 --- a/tests/unit/test_user.py +++ b/tests/unit/test_user.py @@ -76,12 +76,14 @@ def test_manage_jobs_set_to_true(self, user_config, name, username, email, url): z._make_request = mock.MagicMock() z.create(name, username, email, permissions={"monitoring": {"manage_jobs": True}}) - expected_perms = {"monitoring": { - "manage_jobs": False, - "create_jobs": True, - "update_jobs": True, - "delete_jobs": True, - }} + expected_perms = { + "monitoring": { + "manage_jobs": False, + "create_jobs": True, + "update_jobs": True, + "delete_jobs": True, + } + } z._make_request.assert_called_once_with( "PUT", url, @@ -150,12 +152,14 @@ def test_manage_jobs_set_to_true( z.update( username, name=name, ip_whitelist=ip_whitelist, permissions=perms ) - expected_perms = {"monitoring": { - "manage_jobs": False, - "create_jobs": True, - "update_jobs": True, - "delete_jobs": True, - }} + expected_perms = { + "monitoring": { + "manage_jobs": False, + "create_jobs": True, + "update_jobs": True, + "delete_jobs": True, + } + } z._make_request.assert_called_once_with( "POST", url,