Merge pull request #4820 from FinnStutzenstein/compatibilityToPytest5

Compatibility to pytest 5
This commit is contained in:
Finn Stutzenstein 2019-07-03 08:00:16 +02:00 committed by GitHub
commit 8a8684b27a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -16,8 +16,8 @@ matrix:
- pip install --upgrade .[big_mode] - pip install --upgrade .[big_mode]
- pip freeze - pip freeze
script: script:
- python -m mypy openslides/ tests/ - mypy openslides/ tests/
- python -W ignore -m pytest --cov --cov-fail-under=70 - pytest --cov --cov-fail-under=76
- language: python - language: python
name: "Server: Tests Python 3.7" name: "Server: Tests Python 3.7"
@ -35,8 +35,8 @@ matrix:
- flake8 openslides tests - flake8 openslides tests
- isort --check-only --diff --recursive openslides tests - isort --check-only --diff --recursive openslides tests
- black --check --diff --target-version py36 openslides tests - black --check --diff --target-version py36 openslides tests
- python -m mypy openslides/ tests/ - mypy openslides/ tests/
- python -W ignore -m pytest --cov --cov-fail-under=70 - pytest --cov --cov-fail-under=76
- language: python - language: python
name: "Server: Tests Startup Routine Python 3.7" name: "Server: Tests Startup Routine Python 3.7"

View File

@ -27,8 +27,8 @@ def pytest_collection_modifyitems(items):
return None return None
def has_fixture(test, fixture): def has_fixture(test, fixture):
funcargnames = getattr(test, "funcargnames", None) fixturenames = getattr(test, "fixturenames", None)
return funcargnames and fixture in funcargnames return fixturenames and fixture in fixturenames
def weight_test_case(test): def weight_test_case(test):
""" """