Compatibility to pytest 5
This commit is contained in:
parent
ec9760216a
commit
78dcc3f902
@ -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"
|
||||||
|
@ -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):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user