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

Commit

Permalink
(#1282) Fix ispyb system tests for adding snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicOram committed Apr 25, 2024
1 parent 094e54e commit 88acc8f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/system_tests/external_interaction/test_exp_eye_dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

@pytest.mark.s03
def test_start_and_end_robot_load():
"""To confirm this test is successful go to
https://ispyb-test.diamond.ac.uk/dc/visit/cm37235-2 and see that data is added
when it's run.
"""
os.environ["ISPYB_CONFIG_PATH"] = CONST.SIM.DEV_ISPYB_DATABASE_CFG

SAMPLE_ID = 5289780
Expand All @@ -23,7 +27,12 @@ def test_start_and_end_robot_load():

print(f"Created {robot_action_id}")

expeye.update_barcode(robot_action_id, BARCODE)
test_folder = "/dls/i03/data/2024/cm37235-2/xtal_snapshots"
oav_snapshot = test_folder + "/235855_load_after_0.0.png"
webcam_snapshot = test_folder + "/235855_webcam.jpg"
expeye.update_barcode_and_snapshots(
robot_action_id, BARCODE, oav_snapshot, webcam_snapshot
)

sleep(0.5)

Expand Down

0 comments on commit 88acc8f

Please sign in to comment.