diff --git a/tests/test_systemd.py b/tests/test_systemd.py index f012bd5..e9a8a60 100644 --- a/tests/test_systemd.py +++ b/tests/test_systemd.py @@ -8,12 +8,9 @@ import tempfile import time -import pytest - from systemdspawner import systemd -@pytest.mark.asyncio async def test_simple_start(): unit_name = "systemdspawner-unittest-" + str(time.time()) await systemd.start_transient_service( @@ -27,7 +24,6 @@ async def test_simple_start(): assert not await systemd.service_running(unit_name) -@pytest.mark.asyncio async def test_service_failed_reset(): """ Test service_failed and reset_service @@ -50,7 +46,6 @@ async def test_service_failed_reset(): assert not await systemd.service_failed(unit_name) -@pytest.mark.asyncio async def test_service_running_fail(): """ Test service_running failing when there's no service. @@ -60,7 +55,6 @@ async def test_service_running_fail(): assert not await systemd.service_running(unit_name) -@pytest.mark.asyncio async def test_env_setting(): unit_name = "systemdspawner-unittest-" + str(time.time()) with tempfile.TemporaryDirectory() as d: @@ -102,7 +96,6 @@ async def test_env_setting(): assert not os.path.exists(env_file) -@pytest.mark.asyncio async def test_workdir(): unit_name = "systemdspawner-unittest-" + str(time.time()) _, env_filename = tempfile.mkstemp() @@ -122,7 +115,6 @@ async def test_workdir(): assert text == d -@pytest.mark.asyncio async def test_slice(): unit_name = "systemdspawner-unittest-" + str(time.time()) _, env_filename = tempfile.mkstemp() @@ -148,7 +140,6 @@ async def test_slice(): assert b"user.slice" in stdout -@pytest.mark.asyncio async def test_properties_string(): """ Test that setting string properties works @@ -178,7 +169,6 @@ async def test_properties_string(): assert text == "/bind-test" -@pytest.mark.asyncio async def test_properties_list(): """ Test setting multiple values for a property @@ -215,7 +205,6 @@ async def test_properties_list(): assert text == d -@pytest.mark.asyncio async def test_uid_gid(): """ Test setting uid and gid