From 34782a3ca8cb680e519342f1fccbd6be8c9f21cf Mon Sep 17 00:00:00 2001 From: Houkime <> Date: Fri, 29 Sep 2023 16:02:09 +0000 Subject: [PATCH] test(service): enable 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 eb9f591..95d1693 100644 --- a/tests/test_graphql/test_services.py +++ b/tests/test_graphql/test_services.py @@ -249,6 +249,15 @@ def test_stop_nonexistent(authorized_client, only_dummy_service): assert data["service"] is None +def test_enable_nonexistent(authorized_client, only_dummy_service): + dummy_service = only_dummy_service + mutation_response = api_enable_by_name(authorized_client, "bogus_service") + data = get_data(mutation_response)["services"]["enableService"] + assert_notfound(data) + + assert data["service"] is None + + def test_stop_start(authorized_client, only_dummy_service): dummy_service = only_dummy_service