File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 21
21
22
22
def _xtype_wmsg (xtype ):
23
23
return (
24
- f"I don't know how to handle the xtype, '{ xtype } '. Please rerun specifying an "
25
- f"xtype from { * XQUANTITIES , } "
24
+ f"I don't know how to handle the xtype, '{ xtype } '. "
25
+ f"Please rerun specifying an xtype from { * XQUANTITIES , } "
26
26
)
27
27
28
28
29
29
def _setter_wmsg (attribute ):
30
30
return (
31
- f"Direct modification of attribute '{ attribute } ' is not allowed."
31
+ f"Direct modification of attribute '{ attribute } ' is not allowed. "
32
32
f"Please use 'insert_scattering_quantity' to modify '{ attribute } '." ,
33
33
)
34
34
Original file line number Diff line number Diff line change @@ -215,8 +215,8 @@ def test_init_invalid_xtype():
215
215
with pytest .raises (
216
216
ValueError ,
217
217
match = re .escape (
218
- f"I don't know how to handle the xtype, 'invalid_type'. Please rerun specifying an "
219
- f"xtype from { * XQUANTITIES , } "
218
+ f"I don't know how to handle the xtype, 'invalid_type'. "
219
+ f"Please rerun specifying an xtype from { * XQUANTITIES , } "
220
220
),
221
221
):
222
222
DiffractionObject (xtype = "invalid_type" )
@@ -405,7 +405,7 @@ def test_all_array_setter():
405
405
# Attempt to directly modify the property
406
406
with pytest .raises (
407
407
AttributeError ,
408
- match = "Direct modification of attribute 'all_arrays' is not allowed."
408
+ match = "Direct modification of attribute 'all_arrays' is not allowed. "
409
409
"Please use 'insert_scattering_quantity' to modify 'all_arrays'." ,
410
410
):
411
411
actual_do .all_arrays = np .empty ((4 , 4 ))
@@ -432,7 +432,7 @@ def test_input_xtype_setter():
432
432
# Attempt to directly modify the property
433
433
with pytest .raises (
434
434
AttributeError ,
435
- match = "Direct modification of attribute 'input_xtype' is not allowed."
435
+ match = "Direct modification of attribute 'input_xtype' is not allowed. "
436
436
"Please use 'insert_scattering_quantity' to modify 'input_xtype'." ,
437
437
):
438
438
do .input_xtype = "q"
You can’t perform that action at this time.
0 commit comments