File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ def test_new_top_level_container(client):
2929 assert dewar .item_body .firstExperimentId == 1
3030 assert dewar .item_body .dewarRegistryId == 456
3131
32+
3233@responses .activate
3334def test_update_top_level_container (client ):
3435 """Should not get session ID if item has already been pushed to ISPyB"""
@@ -39,12 +40,11 @@ def test_update_top_level_container(client):
3940 assert dewar .item_body .firstExperimentId is None
4041 assert dewar .to_exclude == {"firstExperimentId" }
4142
43+
4244@responses .activate
4345def test_upstream_request_fail ():
4446 """Should raise exception if Expeye returns invalid response"""
45- responses .get (
46- f"{ Config .ispyb_api .url } /foo" , status = 404
47- )
47+ responses .get (f"{ Config .ispyb_api .url } /foo" , status = 404 )
4848
4949 with pytest .raises (HTTPException , match = "Received invalid response from upstream service" ):
5050 _get_resource_from_ispyb ("token" , "/foo" )
You can’t perform that action at this time.
0 commit comments