forked from red-hat-storage/ocs-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove warning of pytest for rewriting modules
Cause we are loading config and defaults from our run_ocsci.py wrapper we need to add PYTEST_DONT_REWRITE msg to dosctring of modules where we don't want to see warning. Documentation: https://docs.pytest.org/en/latest/reference.html#pytest-dont-rewrite-module-docstring Reference where I found about this workarround is mentioned here: pytest-dev/pytest-cov#148 (comment)
- Loading branch information
1 parent
3143c6c
commit 02ec909
Showing
4 changed files
with
48 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
""" | ||
Avoid already-imported warning cause of we are importing this package from | ||
run wrapper for loading config. | ||
You can see documentation here: | ||
https://docs.pytest.org/en/latest/reference.html | ||
under section PYTEST_DONT_REWRITE | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
""" | ||
Avoid already-imported warning cause of we are importing this package from | ||
run wrapper for loading config. | ||
You can see documentation here: | ||
https://docs.pytest.org/en/latest/reference.html | ||
under section PYTEST_DONT_REWRITE | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters