diff --git a/tests/test_workitem_attachments.py b/tests/test_workitem_attachments.py index d1a82e7..e631b3c 100644 --- a/tests/test_workitem_attachments.py +++ b/tests/test_workitem_attachments.py @@ -417,7 +417,7 @@ def test_update_context_diagram_no_changes( converter = model_converter.ModelConverter(model, "TEST") worker.polarion_data_repo = polarion_repo.PolarionDataRepository( [ - data_model.CapellaWorkItem( + old := data_model.CapellaWorkItem( WORKITEM_ID, uuid_capella=TEST_PHYS_FNC, checksum=json.dumps( @@ -442,6 +442,10 @@ def test_update_context_diagram_no_changes( converter.converter_session[TEST_PHYS_FNC] ) + assert ( + converter.converter_session[TEST_PHYS_FNC].work_item.checksum + == old.checksum + ) assert worker.project_client.work_items.update.call_count == 0 assert worker.project_client.work_items.attachments.update.call_count == 0 assert wrapped_render.call_count == 0