Skip to content
Snippets Groups Projects
Commit 6f20e4be authored by Charlotte Hausman's avatar Charlotte Hausman
Browse files

fix test

parent 32a37f83
No related branches found
No related tags found
2 merge requests!1706merge 2.8.4 to main,!1669Catchup with main
Pipeline #15840 passed
......@@ -85,14 +85,14 @@ class TestGeneralFoundation:
@patch("pathlib.Path.glob", return_value=["TSKY0001_split.flagtargetstemplate.txt"])
@patch("pathlib.Path.exists", return_value=True)
@patch("shutil.copy")
def test_general_copy_into_rawdata(self, mock_copy, mock_exists, mock_glob, general):
def test_general_copy_into_rawdata(self, mock_copy, mock_exists, mock_glob, general, parent_path):
general.copy_into_rawdata()
assert mock_exists.call_count == 1
assert mock_copy.call_count == 1
assert mock_glob.call_count == 1
# Ensure copy was called on the expected files
rawdata_dir_path = Path('/lustre/aoc/cluster/pipeline/docker/workspaces/spool/tmpo1ca1pp_/rawdata')
rawdata_dir_path = parent_path / "rawdata"
mock_copy.assert_any_call("TSKY0001_split.flagtargetstemplate.txt", rawdata_dir_path)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment