Skip to content

Commit

Permalink
Assert on store_account result
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhigley committed Sep 4, 2024
1 parent 8a0c773 commit c7008bf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/repositories/test_experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,18 @@ def test_store_experiment():

with DB_ENGINE.connect() as conn:
account_repo = DbAccountRepository(conn)
account_repo.store_account(
account_id = account_repo.store_account(
Account(
account_id=experiment.owner.members[0],
email="[email protected]",
source="test",
status="test",
)
)
assert isinstance(account_id, UUID)
assert str(account_id) == "1936ac91-daf0-4af8-9aa1-53a170c514aa"

experiment_repo = DbExperimentRepository(conn)
experiment_id = experiment_repo.store_experiment(experiment)

assert isinstance(experiment_id, UUID)
assert isinstance(experiment_id, UUID)

0 comments on commit c7008bf

Please sign in to comment.