diff --git a/kayobe/tests/unit/test_ansible.py b/kayobe/tests/unit/test_ansible.py index 6ec7046a5..3f0260b94 100644 --- a/kayobe/tests/unit/test_ansible.py +++ b/kayobe/tests/unit/test_ansible.py @@ -285,7 +285,8 @@ class TestCase(unittest.TestCase): mock_rmtree): parser = argparse.ArgumentParser() parsed_args = parser.parse_args([]) - dump_dir = mock_mkdtemp.return_value + dump_dir = "/path/to/dump" + mock_mkdtemp.return_value = dump_dir mock_listdir.return_value = ["host1.yml", "host2.yml"] mock_read.side_effect = [ {"var1": "value1"},