Skip to content

Commit

Permalink
conftest respects relationships
Browse files Browse the repository at this point in the history
  • Loading branch information
norton120 committed Jun 19, 2024
1 parent f34d7ec commit eb50aff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/orm/test_bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ def test_prefixed_ids(self, db_session):
assert user.id.startswith('user-')
assert str(user._id) in user.id
with db_session as session:
assert user.organization.id.startswith('organization-')
assert str(user.organization._id) in user.organization.id
session.add(user)
assert user.organization.id.startswith('organization-'), "Organization id is prefixed incorrectly"
assert str(user.organization._id) in user.organization.id, "Organization id is not using the correct uuid"

0 comments on commit eb50aff

Please sign in to comment.