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

tests: convert QPC CLI tests to pytests #263

Merged
merged 7 commits into from
Jul 17, 2023

Conversation

abellotti
Copy link
Contributor

@abellotti abellotti commented Jul 14, 2023

Convert the QPC tests to pytests:

  • qpc/cred tests (converted to pytest via #247)
  • qpc/insights tests (already pytest)
  • qpc/report tests
  • qpc/scan tests
  • qpc/server tests
  • qpc/source tests
  • qpc/utils tests

- Convert qpc/report tests to pytest:
    tests_report_deployments.py
    tests_report_deployments.py
    tests_report_details.py
    tests_report_download.py
    tests_report_insights.py
    tests_report_merge.py
    tests_report_merge_status.py
    tests_report_upload.py
@abellotti abellotti marked this pull request as draft July 14, 2023 21:30
@codecov-commenter
Copy link

codecov-commenter commented Jul 14, 2023

Codecov Report

Merging #263 (70e9476) into main (7e6ed88) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #263   +/-   ##
=======================================
  Coverage   93.55%   93.55%           
=======================================
  Files          67       67           
  Lines        2841     2841           
=======================================
  Hits         2658     2658           
  Misses        183      183           

see 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

  - Convert qpc/scan tests to pytest:
      tests_scan_add.py
      tests_scan_cancel.py
      tests_scan_clear.py
      tests_scan_edit.py
      tests_scan_job.py
      tests_scan_list.py
      tests_scan_pause.py
      tests_scan_restart.py
      tests_scan_show.py
      tests_scan_start.py
      tests_utils.py
  - Convert qpc/scan tests to pytest:
      tests_configure_host.py
      tests_login_host.py
      tests_logout_host.py
      tests_status.py
  - Convert qpc/source tests to pytest:
      tests_source_add.py
      tests_source_clear.py
      tests_source_edit.py
      tests_source_list.py
      tests_source_show.py
  - Convert qpc/tests_qpc_utils.py to pytests
- Renamed all the converted unittest tests_ files
  to the test_ pytest prefix.
@abellotti abellotti marked this pull request as ready for review July 15, 2023 11:10
@abellotti abellotti merged commit b13862b into quipucords:main Jul 17, 2023
4 checks passed
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.

3 participants