Remove __init__.py from test directories in fixtures how-to
This commit is contained in:
parent
4d430ea6ff
commit
0579f603c8
|
@ -1689,8 +1689,6 @@ Given the tests file structure is:
|
||||||
::
|
::
|
||||||
|
|
||||||
tests/
|
tests/
|
||||||
__init__.py
|
|
||||||
|
|
||||||
conftest.py
|
conftest.py
|
||||||
# content of tests/conftest.py
|
# content of tests/conftest.py
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1705,8 +1703,6 @@ Given the tests file structure is:
|
||||||
assert username == 'username'
|
assert username == 'username'
|
||||||
|
|
||||||
subfolder/
|
subfolder/
|
||||||
__init__.py
|
|
||||||
|
|
||||||
conftest.py
|
conftest.py
|
||||||
# content of tests/subfolder/conftest.py
|
# content of tests/subfolder/conftest.py
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1715,8 +1711,8 @@ Given the tests file structure is:
|
||||||
def username(username):
|
def username(username):
|
||||||
return 'overridden-' + username
|
return 'overridden-' + username
|
||||||
|
|
||||||
test_something.py
|
test_something_else.py
|
||||||
# content of tests/subfolder/test_something.py
|
# content of tests/subfolder/test_something_else.py
|
||||||
def test_username(username):
|
def test_username(username):
|
||||||
assert username == 'overridden-username'
|
assert username == 'overridden-username'
|
||||||
|
|
||||||
|
@ -1732,8 +1728,6 @@ Given the tests file structure is:
|
||||||
::
|
::
|
||||||
|
|
||||||
tests/
|
tests/
|
||||||
__init__.py
|
|
||||||
|
|
||||||
conftest.py
|
conftest.py
|
||||||
# content of tests/conftest.py
|
# content of tests/conftest.py
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1775,8 +1769,6 @@ Given the tests file structure is:
|
||||||
::
|
::
|
||||||
|
|
||||||
tests/
|
tests/
|
||||||
__init__.py
|
|
||||||
|
|
||||||
conftest.py
|
conftest.py
|
||||||
# content of tests/conftest.py
|
# content of tests/conftest.py
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1813,8 +1805,6 @@ Given the tests file structure is:
|
||||||
::
|
::
|
||||||
|
|
||||||
tests/
|
tests/
|
||||||
__init__.py
|
|
||||||
|
|
||||||
conftest.py
|
conftest.py
|
||||||
# content of tests/conftest.py
|
# content of tests/conftest.py
|
||||||
import pytest
|
import pytest
|
||||||
|
|
Loading…
Reference in New Issue