Skip to content

Commit 48af37e

Browse files
Fix unit test
1 parent 9ae4fc1 commit 48af37e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/unit/analysis/test_handle_config.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ def test_read_config_vars_throws(self):
9191

9292

9393
def test_get_script_name(self):
94-
with patch("mvesuvio.util.handle_config.os.path.basename") as mock_basename:
94+
with (
95+
patch("mvesuvio.util.handle_config.os.path.basename") as mock_basename,
96+
patch("mvesuvio.util.handle_config.read_config_var") as mock_read_config_var
97+
):
9598
mock_basename.return_value = "inputs.py"
9699
self.assertEqual(handle_config.get_script_name(), "inputs")
97100

0 commit comments

Comments
 (0)