Skip to content

Make test_existing_sop_instance_uid better match implementation - #42

Merged
carlosmartinez merged 1 commit into
mainfrom
fix/cstore-existing-sop-improve-test
Mar 9, 2026
Merged

Make test_existing_sop_instance_uid better match implementation#42
carlosmartinez merged 1 commit into
mainfrom
fix/cstore-existing-sop-improve-test

Conversation

@carlosmartinez

Copy link
Copy Markdown
Contributor

Description

The requirement is:

If the modality sends the same image twice (duplicate C-STORE), the gateway should detect by SOP Instance UID and not create duplicate DB records or fire duplicate events to manage.

Actually the code already does this (thanks @steventux).

This PR just slightly improves the existing test (which would pass even if the InstanceExistsError weren't raised in the implementation).

Jira link

https://nhsd-jira.digital.nhs.uk/browse/DTOSS-12388

@carlosmartinez
carlosmartinez requested a review from steventux March 5, 2026 15:29
Comment thread tests/services/dicom/test_c_store.py Outdated

@steventux steventux left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🫕

@carlosmartinez
carlosmartinez force-pushed the fix/cstore-existing-sop-improve-test branch from 4e6736d to 137070f Compare March 9, 2026 17:09
@carlosmartinez
carlosmartinez merged commit 12742c7 into main Mar 9, 2026
6 checks passed
@carlosmartinez
carlosmartinez deleted the fix/cstore-existing-sop-improve-test branch March 9, 2026 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants