Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revamp good practices #10206

Merged
merged 8 commits into from
Sep 1, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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