Skip to content

Commit

Permalink
adapt tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marialainez committed Nov 26, 2024
1 parent c609be3 commit 4c81add
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/osa/scripts/tests/test_osa_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,10 @@ def test_drs4_pedestal_cmd(base_test_dir):
cmd = drs4_pedestal_command(drs4_pedestal_run_id="01804")
expected_command = [
cfg.get("lstchain", "drs4_baseline"),
"--run-number=01804",
f"--base-dir={base_test_dir}",
"-r",
"01804",
"-b",
base_test_dir,
"--no-progress",
]
assert cmd == expected_command
Expand All @@ -315,9 +317,12 @@ def test_calibration_file_cmd(base_test_dir):
cmd = calibration_file_command(drs4_pedestal_run_id="01804", pedcal_run_id="01809")
expected_command = [
cfg.get("lstchain", "charge_calibration"),
"--pedestal-run=01804",
"--run-number=01809",
f"--base-dir={base_test_dir}",
"-p",
"01804",
"-r",
"01809",
"-b",
base_test_dir,
]
assert cmd == expected_command

Expand Down

0 comments on commit 4c81add

Please sign in to comment.