Skip to content

Commit 04bdc27

Browse files
committed
Minor messups in the tests
1 parent 8d957af commit 04bdc27

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/server/api/test_workflow.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_register_dc_group_new_dcg(mock_transport, murfey_db_session: Session):
3939
"atlas": "/path/to/Atlas_1.jpg",
4040
"sample": 10,
4141
"atlas_pixel_size": 1e-5,
42-
"microscope": ExampleVisit.instrument_name,
42+
"microscope": "",
4343
"proposal_code": ExampleVisit.proposal_code,
4444
"proposal_number": ExampleVisit.proposal_number,
4545
"visit_number": ExampleVisit.visit_number,
@@ -99,7 +99,7 @@ def test_register_dc_group_atlas_to_processing(
9999
new_dcg = murfey_db_session.exec(
100100
select(DataCollectionGroup).where(DataCollectionGroup.id == 1)
101101
).one()
102-
assert new_dcg.tag == "preprocessing_tag"
102+
assert new_dcg.tag == "processing_tag"
103103

104104

105105
@mock.patch("murfey.server.api.workflow._transport_object")
@@ -119,7 +119,7 @@ def test_register_dc_group_processing_to_atlas(
119119
tag="processing_tag",
120120
atlas_id=90,
121121
atlas_pixel_size=1e-5,
122-
sample=1,
122+
sample=10,
123123
atlas="/path/to/Atlas_1.jpg",
124124
)
125125
murfey_db_session.add(dcg)
@@ -171,7 +171,7 @@ def test_register_dc_group_new_atlas(mock_transport, murfey_db_session: Session)
171171
by adding an atlas, using the same tag
172172
"""
173173
mock_transport.feedback_queue = "mock_feedback_queue"
174-
mock_transport.do_insert_atlas.return_value = 5
174+
mock_transport.do_insert_atlas.return_value = {"return_value": 5}
175175

176176
# Make sure dcg is present without an atlas id
177177
dcg = DataCollectionGroup(

0 commit comments

Comments
 (0)