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

chore: Add rewrite back to generic test #387

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

gmuloc
Copy link
Collaborator

@gmuloc gmuloc commented Sep 12, 2023

Fixes #385

Because of the voodoo magic from @mtache we need to tell pytest to rewrite the asserts on tests.lib.anta when it is imported.

Tested manually:

  • modify one test to make it fail - check that the assertion message is comprehensive
  • comment the line in conftest and run again - check that you get only Assertion Error

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have run pre-commit for code linting and typing (pre-commit run)
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes (tox -e testenv)

@gmuloc gmuloc merged commit a80f788 into aristanetworks:main Sep 13, 2023
16 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.

pytest: Add logs to pytest
1 participant