We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 149da4f commit d94e28bCopy full SHA for d94e28b
tests/unit/data_finder/test_get_start_end_year.py
@@ -30,9 +30,10 @@ def test_get_start_end_year(case):
30
assert case_end == end
31
32
33
-def test_read_time_from_cube(tmp_path):
+def test_read_time_from_cube(monkeypatch, tmp_path):
34
"""Try to get time from cube if no date in filename"""
35
- temp_file = str(tmp_path / 'test.nc')
+ monkeypatch.chdir(tmp_path)
36
+ temp_file = 'test.nc'
37
cube = iris.cube.Cube([0, 0], var_name='var')
38
time = iris.coords.DimCoord([0, 366],
39
'time',
0 commit comments