Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How to invoke from within a test #96

Open
bemeyvif opened this issue Nov 18, 2024 · 0 comments
Open

Question: How to invoke from within a test #96

bemeyvif opened this issue Nov 18, 2024 · 0 comments
Assignees
Labels
question Further information is requested

Comments

@bemeyvif
Copy link

Before You Begin

Before proceeding, please make sure to follow these steps:

  • [ x] I have checked for similar questions in the project's issue tracker to avoid duplicates.
  • [ x] I have searched existing issues to see if this question has been asked before.

Your Question

Is there a way to call license check from withing a pytest test-case in a github action?

  • I run tests as follows: uv run --frozen pytest tests/test_my_api.py
  • And run licensecheck as follows: licensecheck --ignore-packages package-without-license --ignore-license mpl --only-licenses mit bsd apache python --zero

I would like to call licensecheck from inside a unit test with parameters to skip certain package, ignore mpl licenses and allow only for mit/bsd/apacke and python.

Thanks!

@bemeyvif bemeyvif added the question Further information is requested label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants