-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1ef6939
commit 8a0c773
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
from uuid import UUID | ||
|
||
from poprox_concepts.domain import Account | ||
from poprox_storage.concepts.manifest import manifest_to_experiment, parse_manifest_toml | ||
from poprox_storage.paths import project_root | ||
from poprox_storage.repositories import DbExperimentRepository | ||
from poprox_storage.repositories import DbAccountRepository, DbExperimentRepository | ||
from poprox_storage.repositories.data_stores.db import DB_ENGINE | ||
|
||
|
||
|
@@ -13,6 +14,16 @@ def test_store_experiment(): | |
experiment = manifest_to_experiment(manifest) | ||
|
||
with DB_ENGINE.connect() as conn: | ||
account_repo = DbAccountRepository(conn) | ||
account_repo.store_account( | ||
Account( | ||
account_id=experiment.owner.members[0], | ||
email="[email protected]", | ||
source="test", | ||
status="test", | ||
) | ||
) | ||
|
||
experiment_repo = DbExperimentRepository(conn) | ||
experiment_id = experiment_repo.store_experiment(experiment) | ||
|
||
|