Skip to content

Commit 8e1e920

Browse files
committed
Missed replacing some Murfey session ID parameters
1 parent 8c37fde commit 8e1e920

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

tests/workflows/spa/test_flush_spa_preprocess.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ def test_register_grid_square_update_add_locations(
3333
)
3434

3535
# Run the registration
36-
flush_spa_preprocess.register_grid_square(2, 101, new_parameters, murfey_db_session)
36+
flush_spa_preprocess.register_grid_square(
37+
ExampleVisit.murfey_session_id, 101, new_parameters, murfey_db_session
38+
)
3739

3840
# Check this would have updated ispyb
3941
mock_transport.do_update_grid_square.assert_called_with(1, new_parameters)
@@ -73,7 +75,9 @@ def test_register_grid_square_update_add_nothing(
7375
new_parameters = GridSquareParameters(tag="session_tag")
7476

7577
# Run the registration
76-
flush_spa_preprocess.register_grid_square(2, 101, new_parameters, murfey_db_session)
78+
flush_spa_preprocess.register_grid_square(
79+
ExampleVisit.murfey_session_id, 101, new_parameters, murfey_db_session
80+
)
7781

7882
# Check this would have updated ispyb
7983
mock_transport.do_update_grid_square.assert_called_with(1, new_parameters)
@@ -123,7 +127,9 @@ def test_register_grid_square_insert_with_ispyb(
123127
)
124128

125129
# Run the registration
126-
flush_spa_preprocess.register_grid_square(2, 101, new_parameters, murfey_db_session)
130+
flush_spa_preprocess.register_grid_square(
131+
ExampleVisit.murfey_session_id, 101, new_parameters, murfey_db_session
132+
)
127133

128134
# Check this would have updated ispyb
129135
mock_transport.do_insert_grid_square.assert_called_with(90, 101, new_parameters)

0 commit comments

Comments
 (0)