[tests] use attached daemon where possible

This commit is contained in:
Sam Schott 2020-12-14 12:45:24 +00:00
parent b3e79a201f
commit d9b8ff9e9d
3 changed files with 6 additions and 6 deletions

View File

@ -100,7 +100,7 @@ def m():
@pytest.fixture
def proxy(m):
m.stop_sync()
start_maestral_daemon_process(m.config_name)
start_maestral_daemon_process(m.config_name, detach=False)
yield MaestralProxy(m.config_name)
stop_maestral_daemon_process(m.config_name)

View File

@ -32,7 +32,7 @@ def test_invalid_config(m):
def test_start(config_name):
res = start_maestral_daemon_process(config_name)
res = start_maestral_daemon_process(config_name, detach=False)
assert res is Start.Ok
runner = CliRunner()
@ -44,7 +44,7 @@ def test_start(config_name):
def test_stop(config_name):
res = start_maestral_daemon_process(config_name)
res = start_maestral_daemon_process(config_name, detach=False)
assert res is Start.Ok
runner = CliRunner()
@ -144,7 +144,7 @@ def test_excluded_remove(m):
def test_notify_level(config_name):
start_maestral_daemon_process(config_name)
start_maestral_daemon_process(config_name, detach=False)
m = MaestralProxy(config_name)
runner = CliRunner()
@ -171,7 +171,7 @@ def test_notify_level(config_name):
def test_notify_snooze(config_name):
start_maestral_daemon_process(config_name)
start_maestral_daemon_process(config_name, detach=False)
m = MaestralProxy(config_name)
runner = CliRunner()

View File

@ -219,7 +219,7 @@ def test_fallback(config_name):
def test_remote_exceptions(config_name):
# start daemon process
start_maestral_daemon_process(config_name)
start_maestral_daemon_process(config_name, detach=False)
# create proxy and call a remote method which raises an error
with MaestralProxy(config_name) as m: