@@ -15,7 +15,7 @@ def test_ensure_dcg_exists_tomo(mock_capture_post, tmp_path):
1515 tmp_path
1616 / "cm12345-6/metadata_folder" : f"{ tmp_path } /destination/cm12345-6/raw"
1717 },
18- instrument_name = "" ,
18+ instrument_name = "m01 " ,
1919 visit = "cm12345-6" ,
2020 murfey_session = 1 ,
2121 )
@@ -57,6 +57,7 @@ def test_ensure_dcg_exists_tomo(mock_capture_post, tmp_path):
5757 router_name = "workflow.router" ,
5858 function_name = "register_dc_group" ,
5959 token = "token" ,
60+ instrument_name = "m01" ,
6061 visit_name = "cm12345-6" ,
6162 session_id = 1 ,
6263 data = dcg_data ,
@@ -73,7 +74,7 @@ def test_ensure_dcg_exists_spa(mock_capture_post, tmp_path):
7374 tmp_path
7475 / "cm12345-6/metadata_folder" : f"{ tmp_path } /destination/cm12345-6/raw" ,
7576 },
76- instrument_name = "" ,
77+ instrument_name = "m01 " ,
7778 visit = "cm12345-6" ,
7879 murfey_session = 1 ,
7980 )
@@ -118,6 +119,7 @@ def test_ensure_dcg_exists_spa(mock_capture_post, tmp_path):
118119 router_name = "workflow.router" ,
119120 function_name = "register_dc_group" ,
120121 token = "token" ,
122+ instrument_name = "m01" ,
121123 visit_name = "cm12345-6" ,
122124 session_id = 1 ,
123125 data = dcg_data ,
@@ -131,7 +133,7 @@ def test_ensure_dcg_exists_spa_missing_xml(mock_capture_post, tmp_path):
131133 client_id = 0 ,
132134 sources = [tmp_path ],
133135 default_destinations = {tmp_path : str (tmp_path )},
134- instrument_name = "" ,
136+ instrument_name = "m01 " ,
135137 visit = "cm12345-6" ,
136138 murfey_session = 1 ,
137139 )
@@ -154,6 +156,7 @@ def test_ensure_dcg_exists_spa_missing_xml(mock_capture_post, tmp_path):
154156 router_name = "workflow.router" ,
155157 function_name = "register_dc_group" ,
156158 token = "token" ,
159+ instrument_name = "m01" ,
157160 visit_name = "cm12345-6" ,
158161 session_id = 1 ,
159162 data = dcg_data ,
0 commit comments