From bc1b8145320aa13ccaea516dda55d3dff4b97c16 Mon Sep 17 00:00:00 2001 From: Henning Jacobs Date: Thu, 29 Sep 2016 14:55:03 +0200 Subject: [PATCH] make test directory independent --- tests/test_subcommands/test_root.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_subcommands/test_root.py b/tests/test_subcommands/test_root.py index 3f66f471..796d6c95 100644 --- a/tests/test_subcommands/test_root.py +++ b/tests/test_subcommands/test_root.py @@ -51,6 +51,8 @@ def test_check_senza_version(monkeypatch, with TemporaryDirectory() as temp_dir_3: mock_get_app_dir.return_value = temp_dir_3 + monkeypatch.setattr("senza.subcommands.root.__file__", + '/home/someuser/pymodules/root.py') check_senza_version("0.40") mock_warning.assert_called_once_with( "Your senza version (0.40) is outdated. "