Skip to content

Commit 6a89a93

Browse files
Julien RousselJulien Roussel
authored andcommitted
data tests made windows compatible
1 parent 20b8eef commit 6a89a93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/utils/test_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,15 +224,15 @@ def test_get_dataframes_in_folder(mock_convert_tsf, mock_read_csv, mock_walk):
224224
mock_walk.return_value = [("/fakepath", ("subfolder",), ("file.csv",))]
225225
result_csv = data.get_dataframes_in_folder("/fakepath", ".csv")
226226
assert len(result_csv) == 1
227-
mock_read_csv.assert_called_once_with(os.path.join("fakepath", "file.csv"))
227+
mock_read_csv.assert_called_once_with(os.path.join("/fakepath", "file.csv"))
228228
pd.testing.assert_frame_equal(result_csv[0], df_conductor)
229229

230230
mock_read_csv.reset_mock()
231231
mock_convert_tsf.reset_mock()
232232
mock_walk.return_value = [("/fakepath", ("subfolder",), ("file.tsf",))]
233233
result_tsf = data.get_dataframes_in_folder("/fakepath", ".tsf")
234234
assert len(result_tsf) == 1
235-
mock_convert_tsf.assert_called_once_with(os.path.join("fakepath", "file.tsf"))
235+
mock_convert_tsf.assert_called_once_with(os.path.join("/fakepath", "file.tsf"))
236236
pd.testing.assert_frame_equal(result_tsf[0], df_beijing)
237237
mock_read_csv.assert_called()
238238

0 commit comments

Comments
 (0)