From d606d6d08a709bf313c3da1bf9ab3e3191df421f Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 29 Mar 2024 17:03:31 +0100 Subject: [PATCH] Use a path that works on windows, too. --- ft_client/test_client/test_rest_client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ft_client/test_client/test_rest_client.py b/ft_client/test_client/test_rest_client.py index 60decbe18..880e0974c 100644 --- a/ft_client/test_client/test_rest_client.py +++ b/ft_client/test_client/test_rest_client.py @@ -136,10 +136,11 @@ def test_ft_client(mocker, capsys, caplog): assert mock.call_count == 1 with pytest.raises(SystemExit): - args = add_arguments(['--config', '/dev/null']) + args = add_arguments(['--config', 'tests/testdata/testconfigs/nonexisting.json']) main_exec(args) - assert log_has('Could not load config file /dev/null.', caplog) + assert log_has('Could not load config file tests/testdata/testconfigs/nonexisting.json.', + caplog) args = add_arguments([ '--config',