8000 remove duplicate pytest_configure (#894) · lowgrind/pyscript@bf4d835 · GitHub
[go: up one dir, main page]

Skip to content

Commit bf4d835

Browse files
remove duplicate pytest_configure (pyscript#894)
1 parent 214e395 commit bf4d835

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

pyscriptjs/tests/integration/conftest.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ def pytest_configure(config):
3939
- cd tests/integration; pytest
4040
"""
4141
pytest.fail(msg)
42+
else:
43+
if config.option.dev:
44+
config.option.headed = True
45+
config.option.no_fake_server = True
4246

4347

4448
@pytest.fixture(scope="session")
@@ -59,12 +63,6 @@ def pytest_addoption(parser):
5963
)
6064

6165

62-
def pytest_configure(config):
63-
if config.option.dev:
64-
config.option.headed = True
65-
config.option.no_fake_server = True
66-
67-
6866
@pytest.fixture(scope="session")
6967
def browser_type_launch_args(request):
7068
"""

0 commit comments

Comments
 (0)
0