File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 2525 "orgName" : TEST_ORG_NAME ,
2626 "orgExtRef" : None ,
2727 "notes" : None ,
28- "parentOrgGuid" : None ,
28+ "parentOrgGuid" : TEST_DATA [ "orgGuid" ] ,
2929}
3030TEST_UPDATE_ORG_PAYLOAD = {"orgName" : TEST_ORG_NAME , "orgExtRef" : None , "notes" : None }
3131TEST_ORG_LIST = {"totalCount" : 1 , "orgs" : [TEST_DATA ]}
@@ -41,6 +41,9 @@ def mock_get_org(httpserver_auth: HTTPServer):
4141
4242@pytest .fixture
4343def mock_create_org (httpserver_auth : HTTPServer ):
44+ httpserver_auth .expect_request ("/v1/orgs" , method = "GET" ).respond_with_json (
45+ response_json = TEST_ORG_LIST , status = 200
46+ )
4447 httpserver_auth .expect_request (
4548 "/v1/orgs" , method = "POST" , json = TEST_CREATE_ORG_PAYLOAD
4649 ).respond_with_json (response_json = TEST_DATA , status = 200 )
You can’t perform that action at this time.
0 commit comments