Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/test-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
push:
branches:
- main
- replace_data_finder_module_with_local
schedule:
- cron: '0 0 * * *'

Expand Down
2 changes: 1 addition & 1 deletion esmvaltool/diag_scripts/monitor/monitor_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import cartopy
import matplotlib.pyplot as plt
import yaml
from esmvalcore._data_finder import _replace_tags
from esmvalcore.local import _replace_tags
from iris.analysis import MEAN
from mapgenerator.plotting.timeseries import PlotSeries

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_recipe_filler.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Tests for _data_finder.py."""
"""Tests for recipe_filler.py."""
import contextlib
import os
import shutil
Expand Down
6 changes: 3 additions & 3 deletions tests/integration/test_recipes_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import esmvalcore
import esmvalcore._config
import esmvalcore._data_finder
import esmvalcore.local
import esmvalcore._recipe
import esmvalcore.cmor.check
import esmvaltool
Expand Down Expand Up @@ -43,13 +43,13 @@ def _get_recipes():
def test_recipe_valid(recipe_file, config_user, monkeypatch):
"""Check that recipe files are valid ESMValTool recipes."""
# Mock input files
find_files = create_autospec(esmvalcore._data_finder.find_files,
find_files = create_autospec(esmvalcore.local.find_files,
spec_set=True)
find_files.side_effect = lambda *_, **__: [
'test_0001-1849.nc',
'test_1850-9999.nc',
]
monkeypatch.setattr(esmvalcore._data_finder, 'find_files', find_files)
monkeypatch.setattr(esmvalcore.local, 'find_files', find_files)

# Mock vertical levels
levels = create_autospec(esmvalcore._recipe.get_reference_levels,
Expand Down
2 changes: 1 addition & 1 deletion tests/system/data_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

def get_input_filename(variable, rootpath, drs):
"""Get a valid input filename."""
# TODO: implement this according to esmvalcore._data_finder.py
# TODO: implement this according to esmvalcore.local.py
# or patch get_input_filelist there.
return tempfile.NamedTemporaryFile().name + '.nc'

Expand Down