Skip to content

Commit 22706cb

Browse files
changed test inputs to full expressions
1 parent b2588e2 commit 22706cb

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

src/diffpy/labpdfproc/tests/test_tools.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ def test_set_wavelength_bad(inputs, msg):
8282
params5 = [
8383
([], []),
8484
(
85-
["-u", "facility=NSLS II", "beamline=28ID-2", "favorite color=blue"],
85+
["--user-metadata", "facility=NSLS II", "beamline=28ID-2", "favorite color=blue"],
8686
[["facility", "NSLS II"], ["beamline", "28ID-2"], ["favorite color", "blue"]],
8787
),
88-
(["-u", "x=y=z"], [["x", "y=z"]]),
88+
(["--user-metadata", "x=y=z"], [["x", "y=z"]]),
8989
]
9090

9191

@@ -104,24 +104,30 @@ def test_load_user_metadata(inputs, expected):
104104

105105
params6 = [
106106
(
107-
["-u", "facility=", "NSLS II"],
107+
["--user-metadata", "facility=", "NSLS II"],
108108
[
109109
"Please provide key-value pairs in the format key=value. "
110110
"For more information, use `labpdfproc --help.`"
111111
],
112112
),
113113
(
114-
["-u", "favorite", "color=blue"],
114+
["--user-metadata", "favorite", "color=blue"],
115115
"Please provide key-value pairs in the format key=value. "
116116
"For more information, use `labpdfproc --help.`",
117117
),
118118
(
119-
["-u", "beamline", "=", "28ID-2"],
119+
["--user-metadata", "beamline", "=", "28ID-2"],
120120
"Please provide key-value pairs in the format key=value. "
121121
"For more information, use `labpdfproc --help.`",
122122
),
123-
(["-u", "facility=NSLS II", "facility=NSLS III"], "Please do not specify repeated keys: facility. "),
124-
(["-u", "wavelength=2"], "wavelength is a reserved name. Please rerun using a different key name. "),
123+
(
124+
["--user-metadata", "facility=NSLS II", "facility=NSLS III"],
125+
"Please do not specify repeated keys: facility. ",
126+
),
127+
(
128+
["--user-metadata", "wavelength=2"],
129+
"wavelength is a reserved name. Please rerun using a different key name. ",
130+
),
125131
]
126132

127133

0 commit comments

Comments
 (0)