diff --git a/tests/test_workitem_attachments.py b/tests/test_workitem_attachments.py index d1a82e7..cc807b5 100644 --- a/tests/test_workitem_attachments.py +++ b/tests/test_workitem_attachments.py @@ -30,7 +30,7 @@ "69d8b2ca4e690ccaf70fff16d2e42bbf2ecf434307d49e020d2138160ba35cb2" ) CONTEXT_DIAGRAM_CHECKSUM = ( - "572cb7ba53bcde56638a119fafc1304af294467d8c851f4b2cc35ce2f5d231eb" + "2b86192f2f65353512e1b4af0e652577d0ca3d0cf8595f5dcfba7d52bcb6d702" ) TEST_DIAG_UUID = "_APOQ0QPhEeynfbzU12yy7w" @@ -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