From f32cef9062432697f6f19c03fdcbff07e601efa9 Mon Sep 17 00:00:00 2001 From: ewuerger Date: Thu, 23 Jan 2025 16:36:47 +0100 Subject: [PATCH] test: Change checksum of context diagram in test --- .github/workflows/build-test-publish.yml | 2 +- capella2polarion/connectors/polarion_worker.py | 1 + tests/test_workitem_attachments.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-test-publish.yml b/.github/workflows/build-test-publish.yml index 1369d6e..88f8a3d 100644 --- a/.github/workflows/build-test-publish.yml +++ b/.github/workflows/build-test-publish.yml @@ -35,7 +35,7 @@ jobs: - name: Install test dependencies run: python -m pip install '.[test]' - name: Run unit tests - run: python -m pytest --cov-report=term --cov=capella2polarion --rootdir=. + run: python -m pytest --cov-report=term --cov=capella2polarion --rootdir=. -vv build: name: Build wheel diff --git a/capella2polarion/connectors/polarion_worker.py b/capella2polarion/connectors/polarion_worker.py index 3d9bf49..8964d16 100644 --- a/capella2polarion/connectors/polarion_worker.py +++ b/capella2polarion/connectors/polarion_worker.py @@ -191,6 +191,7 @@ def compare_and_update_work_item( old.checksum = None new.calculate_checksum() + print(new.checksum) if not self.force_update and new.checksum == old.checksum: return diff --git a/tests/test_workitem_attachments.py b/tests/test_workitem_attachments.py index 4c19f99..f2be7e9 100644 --- a/tests/test_workitem_attachments.py +++ b/tests/test_workitem_attachments.py @@ -30,7 +30,7 @@ "0ed1417e8e4717524bc91162dcf8633afca686e93f8b036d0bc48d81f0444f56" ) CONTEXT_DIAGRAM_CHECKSUM = ( - "2b86192f2f65353512e1b4af0e652577d0ca3d0cf8595f5dcfba7d52bcb6d702" + "35efc338fccc53e33d29be408bebe2b10f9b43586b9025cb36b4877183d81ae9" ) TEST_DIAG_UUID = "_APOQ0QPhEeynfbzU12yy7w"