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

Cosmetic clean-up of the pytest fixtures in tests/unit/conftest.py #70

Merged

Conversation

bernhardkaindl
Copy link
Collaborator

@bernhardkaindl bernhardkaindl commented Feb 12, 2024

This only changes the refactors file tests/units/conftest.py

  • it is the local pytest fixtures for this directory
  • and the changes do not break the tests in any way.

For a clean review, I refactored the Refactoring part from #67 into the PR.

It follows the TDD model of

  • Add failing test
  • Fix the code and switch the test to pass
  • Refactor (this PR - but these are only cosmetic updates) <---------------------------

Everything here already has 100.00% code coverage (the every file in tests/unit/* is 100.00% covered)

It is split into two commits, the 1st for actual refactoring:

  • nothing is moved
  • just tiny improvements from review comments

And the 2nd commit is only comments and docstring clean-up to shorten them - doc is n #68.


Commits:

@bernhardkaindl bernhardkaindl changed the title Refactor tests unit conftest.py Refactor the pytest fixtures in tests/unit/conftest.py (only cosmetically) Feb 13, 2024
@bernhardkaindl bernhardkaindl changed the title Refactor the pytest fixtures in tests/unit/conftest.py (only cosmetically) Cosmetic clean-up of the pytest fixtures in tests/unit/conftest.py Feb 14, 2024
@bernhardkaindl bernhardkaindl merged commit 7de0c4d into xenserver:master Feb 16, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants