Skip to content

Commit

Permalink
Remove __init__.py from test directories in fixtures how-to
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep committed Aug 12, 2022
1 parent 4d430ea commit 0579f60
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions doc/en/how-to/fixtures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1689,8 +1689,6 @@ Given the tests file structure is:
::

tests/
__init__.py

conftest.py
# content of tests/conftest.py
import pytest
Expand All @@ -1705,8 +1703,6 @@ Given the tests file structure is:
assert username == 'username'

subfolder/
__init__.py

conftest.py
# content of tests/subfolder/conftest.py
import pytest
Expand All @@ -1715,8 +1711,8 @@ Given the tests file structure is:
def username(username):
return 'overridden-' + username

test_something.py
# content of tests/subfolder/test_something.py
test_something_else.py
# content of tests/subfolder/test_something_else.py
def test_username(username):
assert username == 'overridden-username'

Expand All @@ -1732,8 +1728,6 @@ Given the tests file structure is:
::

tests/
__init__.py

conftest.py
# content of tests/conftest.py
import pytest
Expand Down Expand Up @@ -1775,8 +1769,6 @@ Given the tests file structure is:
::

tests/
__init__.py

conftest.py
# content of tests/conftest.py
import pytest
Expand Down Expand Up @@ -1813,8 +1805,6 @@ Given the tests file structure is:
::

tests/
__init__.py

conftest.py
# content of tests/conftest.py
import pytest
Expand Down

0 comments on commit 0579f60

Please sign in to comment.