We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 657880f commit 38420faCopy full SHA for 38420fa
1 file changed
tests/test_dicom_qr.py
@@ -155,13 +155,13 @@ def test_find_study_with_basic_query():
155
"""Basic query should be converted"""
156
157
qr = DICOMQR(host="host", port=123)
158
- qr.send_c_find = Mock()
+ called = []
159
+ qr.send_c_find = lambda x: called.append(x)
160
qr.parse_c_find_response = Mock()
161
162
qr.find_studies(query=Query(PatientID="test"))
- called = qr.send_c_find.call_args.args[0]
163
- assert type(called) == DICOMQuery
164
- assert called.PatientID == "test"
+ assert type(called[0]) == DICOMQuery
+ assert called[0].PatientID == "test"
165
166
167
def test_parse_instance_response():
0 commit comments