@@ -66,7 +66,7 @@ def test_create_no_code(client):
66
66
)
67
67
68
68
responses .get (
69
- f"{ Config .ispyb_api .url } /dewar-registry?search=DLS-BI-&limit=1" ,
69
+ f"{ Config .ispyb_api .url } /dewar-registry?search=DLS-BI-1 &limit=1" ,
70
70
status = 200 ,
71
71
json = {"items" : [{"facilityCode" : "DLS-BI-5671" }]},
72
72
)
@@ -90,7 +90,7 @@ def test_create_no_code(client):
90
90
def test_no_items_in_ispyb (client ):
91
91
"""Should set generated code index to 1000 if Expeye returns no dewar registry items"""
92
92
responses .get (
93
- f"{ Config .ispyb_api .url } /dewar-registry?search=DLS-BI-&limit=1" ,
93
+ f"{ Config .ispyb_api .url } /dewar-registry?search=DLS-BI-1 &limit=1" ,
94
94
status = 200 ,
95
95
json = {"items" : []},
96
96
)
@@ -120,7 +120,7 @@ def test_no_items_in_ispyb(client):
120
120
def test_create_no_code_expeye_out_of_range (client ):
121
121
"""Should set generated code index to 1000 if Expeye returns a code which is out of eBIC's range"""
122
122
responses .get (
123
- f"{ Config .ispyb_api .url } /dewar-registry?search=DLS-BI-&limit=1" ,
123
+ f"{ Config .ispyb_api .url } /dewar-registry?search=DLS-BI-1 &limit=1" ,
124
124
status = 200 ,
125
125
json = {"items" : [{"facilityCode" : "DLS-BI-0008" }]},
126
126
)
@@ -158,7 +158,7 @@ def test_create_no_code_expeye_out_of_range(client):
158
158
def test_upstream_failure (client , status_get , status_post ):
159
159
"""Should raise exception if request fails upstream"""
160
160
responses .get (
161
- f"{ Config .ispyb_api .url } /dewar-registry?search=DLS-BI-&limit=1" ,
161
+ f"{ Config .ispyb_api .url } /dewar-registry?search=DLS-BI-1 &limit=1" ,
162
162
status = status_get ,
163
163
json = {"items" : [{"facilityCode" : "DLS-BI-5671" }]},
164
164
)
0 commit comments