Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
(#1360) fix test to trace handling of ispyb experiment type from input
Browse files Browse the repository at this point in the history
  • Loading branch information
d-perl committed May 9, 2024
1 parent 8fafbfd commit 710262e
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,19 @@ def test_ispyb_specifies_experiment_type_if_supplied(
RE: RunEngine,
params: RotationInternalParameters,
):
raw_params = raw_params_from_file(
"tests/test_data/parameter_json_files/good_test_rotation_scan_parameters.json"
)
raw_params["hyperion_params"]["ispyb_params"][
"ispyb_experiment_type"
] = "Characterization"
params = RotationInternalParameters(**raw_params)

ispyb_cb = RotationISPyBCallback()
ispyb_cb.active = True
params.hyperion_params.ispyb_params.ispyb_experiment_type = "Characterization"
assert (
params.hyperion_params.ispyb_params.ispyb_experiment_type == "Characterization"
)
rotation_ispyb.return_value.begin_deposition.return_value = IspybIds(
data_collection_group_id=23, data_collection_ids=(45,)
)
Expand Down

0 comments on commit 710262e

Please sign in to comment.