Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: return UUID on database creation #23143

Merged
merged 2 commits into from
Feb 22, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update unit test
  • Loading branch information
betodealmeida committed Feb 22, 2023
commit 11445974cdbcba03aacff42a004f82da5cc08e35
4 changes: 4 additions & 0 deletions tests/unit_tests/databases/api_test.py
Original file line number Diff line number Diff line change
@@ -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")