Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerHYang committed Dec 20, 2024
1 parent 2ae52d8 commit 48aac79
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def test_prompt_versions(
)
with db.begin() as session:
prompt_version = models.PromptVersion(**values)
assert prompt_version.id is None
session.add(prompt_version)
assert (id_ := prompt_version.id) is not None
with db.begin() as session:
Expand All @@ -37,5 +38,6 @@ def test_prompt_versions(
assert session.scalar(select(models.PromptVersion.id).filter_by(id=id_)) is None
with db.begin() as session:
new_prompt_version = models.PromptVersion(**values)
assert new_prompt_version.id is None
session.add(new_prompt_version)
assert new_prompt_version.id > id_

0 comments on commit 48aac79

Please sign in to comment.