Skip to content

Commit e5189d6

Browse files
committed
assert the SubmissionStatus object has not changed
1 parent f08a6ad commit e5189d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/integration/synapseclient/models/async/test_submission_status_async.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,10 @@ async def test_store_submission_status_without_changes(
385385
"""Test that storing a submission status without changes shows warning async."""
386386
# GIVEN a submission status that hasn't been modified
387387
# (it already has _last_persistent_instance set from get())
388+
assert (
389+
test_submission_status._last_persistent_instance == test_submission_status
390+
)
391+
assert not test_submission_status.has_changed
388392

389393
# WHEN I try to store it without making changes
390394
result = await test_submission_status.store_async(synapse_client=self.syn)

0 commit comments

Comments
 (0)