Upgrade pytest to 3.6.0

https://github.com/pytest-dev/pytest/issues/1875 made it impossible to declare
a function as a fixture multiple times, which we were doing across different
modules. The fix was to move our @pytest.fixture calls into decorators in the
tests/fixtures.py module.
This commit is contained in:
Simon Willison 2018-05-31 06:40:30 -07:00
commit 969771770f
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52
5 changed files with 15 additions and 17 deletions

View file

@ -1,12 +1,12 @@
from bs4 import BeautifulSoup as Soup
from .fixtures import app_client, app_client_shorter_time_limit
from .fixtures import ( # noqa
app_client,
app_client_shorter_time_limit,
)
import pytest
import re
import urllib.parse
pytest.fixture(scope='session')(app_client)
pytest.fixture(scope='session')(app_client_shorter_time_limit)
def test_homepage(app_client):
response = app_client.get('/', gather_request=False)