From 6d244fb603e591da54a9beabc1c2c6deefaa6820 Mon Sep 17 00:00:00 2001 From: Houkime <> Date: Fri, 29 Sep 2023 16:08:28 +0000 Subject: [PATCH] test(service): disable nonexistent service --- tests/test_graphql/test_services.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_graphql/test_services.py b/tests/test_graphql/test_services.py index 95d1693..94e8c69 100644 --- a/tests/test_graphql/test_services.py +++ b/tests/test_graphql/test_services.py @@ -258,6 +258,15 @@ def test_enable_nonexistent(authorized_client, only_dummy_service): assert data["service"] is None +def test_disable_nonexistent(authorized_client, only_dummy_service): + dummy_service = only_dummy_service + mutation_response = api_disable_by_name(authorized_client, "bogus_service") + data = get_data(mutation_response)["services"]["disableService"] + assert_notfound(data) + + assert data["service"] is None + + def test_stop_start(authorized_client, only_dummy_service): dummy_service = only_dummy_service