Skip to content

Commit

Permalink
Add fs_module to conftest.py for plugin tests
Browse files Browse the repository at this point in the history
- remove installing pyfakefs from CI
- fixes #687
  • Loading branch information
mrbean-bremen committed Jul 13, 2022
1 parent d457a3b commit 93ee5c1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ jobs:
run: |
pip install wheel
pip install -r requirements.txt
pip install .
- name: Run unit tests without extra packages as non-root user
run: |
export TEST_REAL_FS=1
Expand Down
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ The released versions correspond to PyPi releases.
* added support for `opener` argument in `open`, which is used in `tempfile`
in Python 3.11 since beta 4 (see [#686](../../issues/686))

### Infrastructure
* make sure tests run without `pyfakefs` installed as a package
(see [#687](../../issues/687))

## [Version 4.6.0](https://pypi.python.org/pypi/pyfakefs/4.6.0) (2022-07-12)
Adds support for Python 3.11, removes support for Python 3.6, changes root
path behavior under Windows.
Expand Down
2 changes: 1 addition & 1 deletion pyfakefs/pytest_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from pyfakefs.fake_filesystem_unittest import Patcher

# import the fs fixture to be visible if pyfakefs is not installed
from pyfakefs.pytest_plugin import fs # noqa: F401
from pyfakefs.pytest_plugin import fs, fs_module # noqa: F401

from pyfakefs.pytest_tests import example # noqa: E402

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pytest>=2.8.6
pytest>=3.0.0

0 comments on commit 93ee5c1

Please sign in to comment.