xenserver / status-report

Program that gathers data for xenserver host diagnostics
GNU Lesser General Public License v2.1
1 stars 9 forks source link

tests/unit/conftest.py: Add a common pytest fixture to test functions of xen-bugtool #28

Closed bernhardkaindl closed 11 months ago

bernhardkaindl commented 11 months ago

Summary for @GeraldEV (or other reviewers): This PR:

Details

Converts the existing pytest fixture to test functions of xen-bugtool to a common pytest fixtures:

Outlook of it's use, just as information beforehand:

The Python3 migration of xen-bugtool is really tricky (PRs will be documented, details then for each one):

This test fixture will be used by many unit tests to test bugtool functions before and after adding Python3 support to ensure that the changes do not harm (change behavior) of the code in any way!

This will be done in a test-driven manner (Test-Driven Development):

  1. To ensure that the test case is correct for the behavior of the existing code, tests running on Python2 (in GitHub CI) will be added with an initial commit!
  2. Python3 changes will be applied, without any change to the test case except for opening it's execution on Python3 to enable testing. Again, with verification using GitHub CI.

All commits should show a green checkmark symbol.

bernhardkaindl commented 11 months ago

Summary for @GeraldEV (or another reviewer). This PR: