Skip to content

Commit b89a3fb

Browse files
committed
tests
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent e1379a4 commit b89a3fb

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ keywords = [
7070
[tool.poetry.dependencies]
7171
python = "^3.8"
7272
packageurl-python = ">=0.11, <2"
73-
py-serializable = "^2.0.0"
73+
py-serializable = "^1.1.1"
7474
sortedcontainers = "^2.4.0"
7575
license-expression = "^30"
7676
jsonschema = { version = "^4.18", extras=['format'], optional=true }

tests/test_spdx.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
VALID_EXPRESSIONS = {
3333
# region Simple license expressions
3434
'CDDL-1.0',
35-
'CDDL-1.0+',
36-
'LicenseRef-23',
37-
'LicenseRef-MIT-Style-1',
38-
'DocumentRef-spdx-tool-1.2:LicenseRef-MIT-Style-2'
35+
# 'CDDL-1.0+', # not supported yet - https://github.com/aboutcode-org/license-expression/issues/110
36+
# 'LicenseRef-23', # not supported yet - https://github.com/aboutcode-org/license-expression/issues/109
37+
# 'LicenseRef-MIT-Style-1', # not supported yet - https://github.com/aboutcode-org/license-expression/issues/109
38+
# 'DocumentRef-spdx-tool-1.2:LicenseRef-MIT-Style-2', # not supported yet - https://github.com/aboutcode-org/license-expression/issues/109
3939
# endregion Simple license expressions
4040
# region Composite license expressions
4141
'LGPL-2.1-only OR MIT',
@@ -49,19 +49,19 @@
4949
'LGPL-2.1-only AND MIT AND BSD-2-Clause',
5050
'GPL-2.0-or-later WITH Bison-exception-2.2',
5151
'LGPL-2.1-only OR BSD-3-Clause AND MIT',
52-
'MIT AND (LGPL-2.1-or-later OR BSD-3-Clause)'
52+
'MIT AND (LGPL-2.1-or-later OR BSD-3-Clause)',
5353
# endregion Composite license expressions
5454
# region examples from CDX spec
5555
'Apache-2.0 AND (MIT OR GPL-2.0-only)',
56-
'GPL-3.0-only WITH Classpath-exception-2.0'
56+
'GPL-3.0-only WITH Classpath-exception-2.0',
5757
# endregion examples from CDX spec
5858
}
5959

6060
INVALID_EXPRESSIONS = {
6161
'MIT AND Apache-2.0 OR something-unknown'
6262
'something invalid',
6363
'(c) John Doe',
64-
'Apache License, Version 2.0'
64+
'Apache License, Version 2.0',
6565
}
6666

6767
UNKNOWN_SPDX_IDS = {

0 commit comments

Comments
 (0)