Skip to content

Commit

Permalink
Try something with mock
Browse files Browse the repository at this point in the history
  • Loading branch information
aanil committed Jan 8, 2024
1 parent 7fd0458 commit 296b7fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_ngi_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def test_data_loc_not_dir(tmp_path):
temp_file = tmp_path / "test_file.txt"
temp_file.write_text("test")
config_values.DATA_LOCATION = temp_file
with mock.patch("daily_read.statusdb.StatusDBSession") and pytest.raises(
with mock.patch("daily_read.ngi_data.statusdb.StatusDBSession") and pytest.raises(
ValueError, match=f"Data Location exists but is not a directory: {config_values.DATA_LOCATION}"
) as err:
ngi_data.ProjectDataMaster(config_values)
Expand Down

0 comments on commit 296b7fd

Please sign in to comment.