Skip to content

Commit

Permalink
Add parallel test on L0 command processing
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiggi committed Dec 4, 2023
1 parent 4aba136 commit c2044c5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 13 additions & 2 deletions disdrodb/tests/test_l0/test_cmd_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,9 @@ def test_disdrodb_run_l0(tmp_path, remove_l0a, remove_l0b, l0b_concat):
assert count_files(l0b_station_dir, glob_pattern="*.nc", recursive=True) > 0


@pytest.mark.parametrize("parallel", [True, False])
@pytest.mark.parametrize("verbose", [True, False])
def test_disdrodb_run_l0_nc_station(tmp_path, verbose):
def test_disdrodb_run_l0_nc_station(tmp_path, verbose, parallel):
"""Test the disdrodb_run_l0_station process correctly raw netCDF files."""

BASE_DIR = os.path.join(__root_path__, "disdrodb", "tests", "data", "check_readers", "DISDRODB")
Expand All @@ -220,7 +221,17 @@ def test_disdrodb_run_l0_nc_station(tmp_path, verbose):
runner = CliRunner()
runner.invoke(
disdrodb_run_l0_station,
[DATA_SOURCE, CAMPAIGN_NAME, STATION_NAME, "--base_dir", test_base_dir, "--verbose", verbose],
[
DATA_SOURCE,
CAMPAIGN_NAME,
STATION_NAME,
"--base_dir",
test_base_dir,
"--verbose",
verbose,
"--parallel",
parallel,
],
)

station_dir = define_station_dir(
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
click==8.1.3
trollsift=0.5.1
trollsift==0.5.1
tqdm==4.65.0
pooch==1.7.0
requests==2.28.2
Expand Down

0 comments on commit c2044c5

Please sign in to comment.