Skip to content

Commit

Permalink
remove again
Browse files Browse the repository at this point in the history
  • Loading branch information
ewuerger committed Dec 13, 2024
1 parent d0a3155 commit 53a7186
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_workitem_attachments.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"69d8b2ca4e690ccaf70fff16d2e42bbf2ecf434307d49e020d2138160ba35cb2"
)
CONTEXT_DIAGRAM_CHECKSUM = (
"572cb7ba53bcde56638a119fafc1304af294467d8c851f4b2cc35ce2f5d231eb"
"2b86192f2f65353512e1b4af0e652577d0ca3d0cf8595f5dcfba7d52bcb6d702"
)

TEST_DIAG_UUID = "_APOQ0QPhEeynfbzU12yy7w"
Expand Down Expand Up @@ -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(
Expand All @@ -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
Expand Down

0 comments on commit 53a7186

Please sign in to comment.