Skip to content

Commit 8e73ee0

Browse files
fix failing test
1 parent 2c349c6 commit 8e73ee0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_orgs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"orgName": TEST_ORG_NAME,
2626
"orgExtRef": None,
2727
"notes": None,
28-
"parentOrgGuid": None,
28+
"parentOrgGuid": TEST_DATA["orgGuid"],
2929
}
3030
TEST_UPDATE_ORG_PAYLOAD = {"orgName": TEST_ORG_NAME, "orgExtRef": None, "notes": None}
3131
TEST_ORG_LIST = {"totalCount": 1, "orgs": [TEST_DATA]}
@@ -41,6 +41,9 @@ def mock_get_org(httpserver_auth: HTTPServer):
4141

4242
@pytest.fixture
4343
def 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)

0 commit comments

Comments
 (0)