This repository was archived by the owner on Nov 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 21
21
__all__ = ()
22
22
23
23
24
- class TestEnv (object ):
24
+ class FakeTestEnv (object ):
25
25
"""An isolated environment where pydocstyle can be run.
26
26
27
27
Since running pydocstyle as a script is affected by local config files,
@@ -109,7 +109,7 @@ def install_package(request):
109
109
110
110
@pytest .yield_fixture (scope = "function" , params = ('pydocstyle' , 'pep257' ))
111
111
def env (request ):
112
- with TestEnv (request .param ) as test_env :
112
+ with FakeTestEnv (request .param ) as test_env :
113
113
yield test_env
114
114
115
115
pytestmark = pytest .mark .usefixtures ("install_package" )
@@ -854,7 +854,7 @@ def foo():
854
854
855
855
856
856
def test_pep257_entry_point ():
857
- with TestEnv ('pep257' ) as env :
857
+ with FakeTestEnv ('pep257' ) as env :
858
858
_ , err , code = env .invoke ()
859
859
assert code == 0
860
860
assert 'Deprecation Warning' in err , err
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ commands=sphinx-build -b html . _build
23
23
pep8ignore =
24
24
test.py E701 E704
25
25
norecursedirs = docs .tox
26
+ addopts = -rw
26
27
27
28
[pep257]
28
29
inherit = false
You can’t perform that action at this time.
0 commit comments