Skip to content

Commit

Permalink
Only use @pytest.fixture decorator once per fixture
Browse files Browse the repository at this point in the history
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
  • Loading branch information
hroncok committed Jun 18, 2018
1 parent ddcb2f2 commit 65068a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
from pytest_httpbin.plugin import httpbin_ca_bundle


pytest.fixture(autouse=True)(httpbin_ca_bundle)
@pytest.fixture(autouse=True, scope='function')
def httpbin_ca_bundle_autoused(httpbin_ca_bundle):
pass

0 comments on commit 65068a2

Please sign in to comment.