feat: return UUID on database creation (#23143)

This commit is contained in:
Beto Dealmeida
2023-02-21 17:36:16 -08:00
committed by GitHub
parent a40c12d63e
commit fbf10c35a9
4 changed files with 7 additions and 0 deletions

View File

@@ -50,6 +50,10 @@ def test_post_with_uuid(
)
assert response.status_code == 201
# check that response includes UUID
payload = response.json
assert payload["result"]["uuid"] == "7c1b7880-a59d-47cd-8bf1-f1eb8d2863cb"
database = session.query(Database).one()
assert database.uuid == UUID("7c1b7880-a59d-47cd-8bf1-f1eb8d2863cb")