Skip to content

Commit

Permalink
Add test for nexus writer
Browse files Browse the repository at this point in the history
  • Loading branch information
noemifrisina committed Jan 30, 2025
1 parent 6853dae commit 02ac2b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit_tests/beamlines/i24/serial/test_write_nexus.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ def test_call_nexgen_for_fixed_target(
fake_log,
dummy_params_without_pp,
):
fake_caget_str.return_value = f"{dummy_params_without_pp.filename}_5002"
expected_filename = f"{dummy_params_without_pp.filename}_5002"
fake_caget_str.return_value = expected_filename
fake_caget.return_value = 32
fake_path.return_value = True
fake_read_text.return_value = ""
Expand All @@ -44,3 +45,4 @@ def test_call_nexgen_for_fixed_target(
patch_request.post.assert_called_once()

assert patch_request.post.call_args.kwargs["json"]["expt_type"] == "fixed-target"
assert patch_request.post.call_args.kwargs["json"]["filename"] == expected_filename

0 comments on commit 02ac2b3

Please sign in to comment.