Skip to content

Commit 0dd95e8

Browse files
committed
Use input_data across all tests file instead of input_scattering_data
1 parent 1916d97 commit 0dd95e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_diffraction_objects.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,12 +378,12 @@ def test_id_getter():
378378
assert len(str(do.id)) == 36
379379

380380

381-
def test_id_setter():
381+
def test_id_setter_error():
382382
do = DiffractionObject()
383383
# Attempt to directly modify the property
384384
with pytest.raises(
385385
AttributeError,
386-
match="Direct modification of attribute 'id' is not allowed. Please use 'insert_scattering_quantity' to modify 'id'.",
386+
match="Direct modification of attribute 'id' is not allowed. Please use 'input_data' to modify 'id'.",
387387
):
388388
do.id = uuid.uuid4()
389389

@@ -403,7 +403,7 @@ def test_input_xtype_getter():
403403
assert do.input_xtype == "tth"
404404

405405

406-
def test_input_xtype_setter():
406+
def test_input_xtype_setter_error():
407407
do = DiffractionObject(xtype="tth")
408408

409409
# Attempt to directly modify the property

0 commit comments

Comments
 (0)