Skip to content

Commit 65068a2

Browse files
committed
Only use @pytest.fixture decorator once per fixture
This is now required in pytest >= 3.6 We define our own autoused fixtue not to change the API See pytest-dev/pytest#3518 Fixes kevin1024#49
1 parent ddcb2f2 commit 65068a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33
from pytest_httpbin.plugin import httpbin_ca_bundle
44

55

6-
pytest.fixture(autouse=True)(httpbin_ca_bundle)
6+
@pytest.fixture(autouse=True, scope='function')
7+
def httpbin_ca_bundle_autoused(httpbin_ca_bundle):
8+
pass

0 commit comments

Comments
 (0)