Skip to content

Add small tests for library#11

Open
bact wants to merge 12 commits into
JPEWdev:mainfrom
bact:add-lib-test
Open

Add small tests for library#11
bact wants to merge 12 commits into
JPEWdev:mainfrom
bact:add-lib-test

Conversation

@bact

@bact bact commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Basic tests to check if the library is importable and callable.

Public API

  • main is dropped public API (will not be imported with from spdx3_validate import *), as it is for CLI only.
  • Only two symbols are exposed as public API: spdx3validate (core function) and __version__.
  • CLI is not affected as we are updating the command line entry-point to point directly into the main function inside spdx3_validate.main submodule. All the existing scripts will run the same.

bact added 3 commits June 4, 2026 13:51
Add a small test to test if spdx3_validate can be imported as a library.

Expand Python versions for testing to 3.13 and 3.14.

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
@bact

bact commented Jun 4, 2026

Copy link
Copy Markdown
Contributor Author

@vargenau if you can help review when you are free

@bact bact mentioned this pull request Jun 4, 2026
bact added 4 commits June 5, 2026 01:04
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
DATA_DIR in tests/data/3.0.1

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
@vargenau

vargenau commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

@vargenau if you can help review when you are free

Seems OK for me.

bact added 5 commits June 5, 2026 12:46
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants