Skip to content

Commit c2044c5

Browse files
committed
Add parallel test on L0 command processing
1 parent 4aba136 commit c2044c5

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

disdrodb/tests/test_l0/test_cmd_processing.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,9 @@ def test_disdrodb_run_l0(tmp_path, remove_l0a, remove_l0b, l0b_concat):
205205
assert count_files(l0b_station_dir, glob_pattern="*.nc", recursive=True) > 0
206206

207207

208+
@pytest.mark.parametrize("parallel", [True, False])
208209
@pytest.mark.parametrize("verbose", [True, False])
209-
def test_disdrodb_run_l0_nc_station(tmp_path, verbose):
210+
def test_disdrodb_run_l0_nc_station(tmp_path, verbose, parallel):
210211
"""Test the disdrodb_run_l0_station process correctly raw netCDF files."""
211212

212213
BASE_DIR = os.path.join(__root_path__, "disdrodb", "tests", "data", "check_readers", "DISDRODB")
@@ -220,7 +221,17 @@ def test_disdrodb_run_l0_nc_station(tmp_path, verbose):
220221
runner = CliRunner()
221222
runner.invoke(
222223
disdrodb_run_l0_station,
223-
[DATA_SOURCE, CAMPAIGN_NAME, STATION_NAME, "--base_dir", test_base_dir, "--verbose", verbose],
224+
[
225+
DATA_SOURCE,
226+
CAMPAIGN_NAME,
227+
STATION_NAME,
228+
"--base_dir",
229+
test_base_dir,
230+
"--verbose",
231+
verbose,
232+
"--parallel",
233+
parallel,
234+
],
224235
)
225236

226237
station_dir = define_station_dir(

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
click==8.1.3
2-
trollsift=0.5.1
2+
trollsift==0.5.1
33
tqdm==4.65.0
44
pooch==1.7.0
55
requests==2.28.2

0 commit comments

Comments
 (0)