Update get_or_create method

This commit is contained in:
Mojix Coder
2022-02-01 09:44:07 +03:30
parent 4ed267e5c3
commit fc32001fe7
9 changed files with 92 additions and 33 deletions

View File

@ -102,7 +102,7 @@ def test_payload():
"native_name": "Thailand",
}
resp = client.post("/", json=payload, headers={"application-type": "json"})
print(resp.content)
# print(resp.content)
assert resp.status_code == 201
resp_country = Country(**resp.json())