mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-25 02:06:54 +00:00
test(service): stop nonexistent service
This commit is contained in:
parent
a163718120
commit
bfdd98cb60
|
@ -240,6 +240,15 @@ def test_start_nonexistent(authorized_client, only_dummy_service):
|
|||
assert data["service"] is None
|
||||
|
||||
|
||||
def test_stop_nonexistent(authorized_client, only_dummy_service):
|
||||
dummy_service = only_dummy_service
|
||||
mutation_response = api_stop_by_name(authorized_client, "bogus_service")
|
||||
data = get_data(mutation_response)["services"]["stopService"]
|
||||
assert_notfound(data)
|
||||
|
||||
assert data["service"] is None
|
||||
|
||||
|
||||
def test_stop_start(authorized_client, only_dummy_service):
|
||||
dummy_service = only_dummy_service
|
||||
|
||||
|
|
Loading…
Reference in a new issue