@@ -82,10 +82,10 @@ def test_set_wavelength_bad(inputs, msg):
82
82
params5 = [
83
83
([], []),
84
84
(
85
- ["-u " , "facility=NSLS II" , "beamline=28ID-2" , "favorite color=blue" ],
85
+ ["--user-metadata " , "facility=NSLS II" , "beamline=28ID-2" , "favorite color=blue" ],
86
86
[["facility" , "NSLS II" ], ["beamline" , "28ID-2" ], ["favorite color" , "blue" ]],
87
87
),
88
- (["-u " , "x=y=z" ], [["x" , "y=z" ]]),
88
+ (["--user-metadata " , "x=y=z" ], [["x" , "y=z" ]]),
89
89
]
90
90
91
91
@@ -104,24 +104,30 @@ def test_load_user_metadata(inputs, expected):
104
104
105
105
params6 = [
106
106
(
107
- ["-u " , "facility=" , "NSLS II" ],
107
+ ["--user-metadata " , "facility=" , "NSLS II" ],
108
108
[
109
109
"Please provide key-value pairs in the format key=value. "
110
110
"For more information, use `labpdfproc --help.`"
111
111
],
112
112
),
113
113
(
114
- ["-u " , "favorite" , "color=blue" ],
114
+ ["--user-metadata " , "favorite" , "color=blue" ],
115
115
"Please provide key-value pairs in the format key=value. "
116
116
"For more information, use `labpdfproc --help.`" ,
117
117
),
118
118
(
119
- ["-u " , "beamline" , "=" , "28ID-2" ],
119
+ ["--user-metadata " , "beamline" , "=" , "28ID-2" ],
120
120
"Please provide key-value pairs in the format key=value. "
121
121
"For more information, use `labpdfproc --help.`" ,
122
122
),
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
+ ),
125
131
]
126
132
127
133
0 commit comments