-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a single "tmpdir" fixture for all supported Python versions
See comments in `conftest.py`, but in general: * because of our code, we would like to use `tmp_path` and `Path` it returns, * but we have also our custom `tmt.utils.Path` we should be using instead of the original `pathlib.Path`, * because of RHEL8, we also get pytest without `tmp_path` fixture, * and `tmpdir` fixture returns `py.path.local`. The patch adds our custom fixture which returns `tmt.utils.Path` no matter what pytest we get. It's achieved by a test import, trivial wrapper class, and two fixtures hiding the actual pytest fixture involved.
- Loading branch information
Showing
4 changed files
with
112 additions
and
42 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
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
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