File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -289,6 +289,23 @@ def test_license_expr_error(invalid_expr: str):
289289 config .read_pep621_metadata (proj , samples_dir / 'pep621' / 'pyproject.toml' )
290290
291291
292+ @pytest .mark .parametrize ('invalid_expr' , [
293+ "mit or mit" ,
294+ "or" ,
295+ "and" ,
296+ "MIT and MIT" ,
297+ "MIT AND MIT or MIT" ,
298+ "MIT AND (MIT or MIT)" ,
299+ ])
300+ def test_license_expr_error_lowercase (invalid_expr : str ):
301+ proj = {
302+ 'name' : 'module1' , 'version' : '1.0' , 'description' : 'x' ,
303+ 'license' : invalid_expr ,
304+ }
305+ with pytest .raises (config .ConfigError , match = "must be uppercase" ):
306+ config .read_pep621_metadata (proj , samples_dir / 'pep621' / 'pyproject.toml' )
307+
308+
292309@pytest .mark .parametrize ('invalid_expr' , [
293310 "LicenseRef-foo_bar" ,
294311 "LicenseRef-foo~bar" ,
You can’t perform that action at this time.
0 commit comments