Skip to content

Commit

Permalink
Verify version number wasn't updated
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanFauble committed May 15, 2024
1 parent 0c1af9a commit 0818990
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ async def test_activity_store_then_delete(

# THEN I expect the file to be stored
assert file.id is not None
assert file.version_number == 1
assert file.activity is not None
assert file.activity.id is not None
assert file.activity.etag is not None
Expand All @@ -132,6 +133,7 @@ async def test_activity_store_then_delete(
)
assert file_copy.activity is None
assert file.activity is None
assert file.version_number == 1

async def test_store_in_folder(self, project_model: Project, file: File) -> None:
# GIVEN a file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ async def test_activity_store_then_delete(

# THEN I expect the file to be stored
assert file.id is not None
assert file.version_number == 1
assert file.activity is not None
assert file.activity.id is not None
assert file.activity.etag is not None
Expand All @@ -129,6 +130,7 @@ async def test_activity_store_then_delete(
file_copy = File(id=file.id, download_file=False).get(include_activity=True)
assert file_copy.activity is None
assert file.activity is None
assert file.version_number == 1

async def test_store_in_folder(self, project_model: Project, file: File) -> None:
# GIVEN a file
Expand Down

0 comments on commit 0818990

Please sign in to comment.