-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add: test for packages API from github #1049
Conversation
Conventional Commits Report
🚀 Conventional commits found. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1049 +/- ##
==========================================
- Coverage 90.37% 90.33% -0.04%
==========================================
Files 103 105 +2
Lines 6981 7089 +108
Branches 990 1006 +16
==========================================
+ Hits 6309 6404 +95
- Misses 472 478 +6
- Partials 200 207 +7 ☔ View full report in Codecov by Sentry. |
d4ee833
to
e6b5278
Compare
e6b5278
to
75159ac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested by running:
poetry run python -m unittest -v tests/github/api/test_packages.py
poetry run python -m unittest -v tests/github/api/test_organizations.py
-> Tests succeeding
GITHUB_TOKEN=Token poetry run pontos-github-script pontos/github/scripts/delete-package-with-tag.py greenbone pipeline-experiments sha-414af7b
-> Package deleted
GITHUB_TOKEN=Token poetry run pontos-github-script pontos/github/scripts/find-package-tag.py greenbone pipeline-experiments sha-414af7b
-> Package not found <- that is correct
GITHUB_TOKEN=Token poetry run pontos-github-script pontos/github/scripts/find-package-tag.py greenbone pipeline-experiments sha-988f4e9
-> Package found
What
Add: Tests for function of the github package api
Why
References
DEVOPS-1022
Checklist