Skip to content

Commit 6dc2738

Browse files
committed
Remove print diff function in pytest for debugging
1 parent e7b4dc2 commit 6dc2738

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

tests/test_diffraction_objects.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,6 @@ def test_dump(tmp_path, mocker):
300300
def test_constructor(inputs, expected):
301301
actual = DiffractionObject(**inputs).__dict__
302302
diff = DeepDiff(actual, expected, ignore_order=True, significant_digits=13, exclude_paths="root['_id']")
303-
print("Print diff")
304-
print(diff)
305-
# {'dictionary_item_added': ["root['name']", "root['scat_quantity']"]}
306303
assert diff == {}
307304

308305

@@ -348,6 +345,18 @@ def test_id_getter_with_mock(mocker, do_minimal):
348345
assert do.id == UUID("d67b19c6-3016-439f-81f7-cf20a04bee87")
349346

350347

348+
def input_data(
349+
self,
350+
xarray,
351+
yarray,
352+
xtype,
353+
metadata={},
354+
scat_quantity=None,
355+
name=None,
356+
wavelength=None,
357+
):
358+
359+
351360
def test_id_setter_error(do_minimal):
352361
do = do_minimal
353362

0 commit comments

Comments
 (0)