mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-26 02:36:36 +00:00
test(service): disable nonexistent service
This commit is contained in:
parent
34782a3ca8
commit
6d244fb603
|
@ -258,6 +258,15 @@ def test_enable_nonexistent(authorized_client, only_dummy_service):
|
||||||
assert data["service"] is None
|
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):
|
def test_stop_start(authorized_client, only_dummy_service):
|
||||||
dummy_service = only_dummy_service
|
dummy_service = only_dummy_service
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue