Skip to content

Commit

Permalink
make test directory independent
Browse files Browse the repository at this point in the history
  • Loading branch information
hjacobs committed Sep 29, 2016
1 parent e7d0b51 commit bc1b814
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_subcommands/test_root.py
Expand Up @@ -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. "
Expand Down

0 comments on commit bc1b814

Please sign in to comment.