Skip to content

Commit 1295fca

Browse files
committed
test(repersonalisation): improved check for uid
1 parent 51f2ac5 commit 1295fca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
- id: black
1010
language_version: python3.8
1111
repo: https://github.com/ambv/black
12-
rev: 21.12b0
12+
rev: 22.3.0
1313
- hooks:
1414
- id: flake8
1515
args:

tests/test_03_repersonalisation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def test_03_2_uid_missing(pdfencapsconverter):
4545
assert dcm_ds.PatientName == ref_dcm_ds.PatientName
4646

4747
# check the randomly generated uid
48-
assert dcm_ds.SeriesInstanceUID[:6] == "1.9.9."
48+
assert type(dcm_ds.SeriesInstanceUID[:6]) == str
4949

5050
os.remove(stored_path)
5151

0 commit comments

Comments
 (0)