From d9b8ff9e9d2008100c434798041ee1b1d1880d06 Mon Sep 17 00:00:00 2001 From: Sam Schott Date: Mon, 14 Dec 2020 12:45:24 +0000 Subject: [PATCH] [tests] use attached daemon where possible --- tests/linked/conftest.py | 2 +- tests/offline/test_cli.py | 8 ++++---- tests/offline/test_daemon.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/linked/conftest.py b/tests/linked/conftest.py index 0cc2e5fc..cb7b103c 100644 --- a/tests/linked/conftest.py +++ b/tests/linked/conftest.py @@ -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) diff --git a/tests/offline/test_cli.py b/tests/offline/test_cli.py index f70bc884..04c534fd 100644 --- a/tests/offline/test_cli.py +++ b/tests/offline/test_cli.py @@ -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() diff --git a/tests/offline/test_daemon.py b/tests/offline/test_daemon.py index 317b8e80..15f62f45 100644 --- a/tests/offline/test_daemon.py +++ b/tests/offline/test_daemon.py @@ -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: