mirror of
https://github.com/samschott/maestral.git
synced 2024-11-11 19:44:19 +03:00
[tests] use attached daemon where possible
This commit is contained in:
parent
b3e79a201f
commit
d9b8ff9e9d
@ -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)
|
||||
|
@ -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()
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user