Skip to content

Commit

Permalink
Consolidate pytest markers
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Apr 25, 2021
1 parent e739e4e commit 4e5927d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,10 @@ isort = "isort wetterdienst example tests"
format = ["black", "isort"]
lint = "flakehell lint wetterdienst example tests"
test = "pytest tests"
test-parallel = "pytest --numprocesses=4 -m 'not (explorer or cflake)' tests"
test-cflakes = "pytest -m cflake tests"
test-parallel = "pytest --numprocesses=4 -m 'not cflake' tests"
coverage = "pytest --cov=wetterdienst tests"
coverage-parallel = "pytest --cov=wetterdienst --numprocesses=4 -m 'not (explorer or cflake)' tests"
coverage-parallel = "pytest --cov=wetterdienst --numprocesses=4 -m 'not cflake' tests"
export_requirements = "dephell deps convert"
export_licenses = "pip-licenses --from=mixed --format=plain-vertical --with-authors --with-urls --with-license-file --no-license-path --ignore-packages wetterdienst --output-file=THIRD_PARTY_NOTICES"
export = ["export_requirements", "export_licenses"]
Expand Down
4 changes: 4 additions & 0 deletions tests/ui/explorer/test_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@


@pytest.mark.slow
@pytest.mark.cflake
@pytest.mark.explorer
def test_app_layout(wetterdienst_ui, dash_tre):

Expand All @@ -37,6 +38,7 @@ def test_app_layout(wetterdienst_ui, dash_tre):


@pytest.mark.slow
@pytest.mark.cflake
@pytest.mark.explorer
def test_app_data_stations_success(wetterdienst_ui, dash_tre):
"""
Expand Down Expand Up @@ -67,6 +69,7 @@ def test_app_data_stations_success(wetterdienst_ui, dash_tre):


@pytest.mark.slow
@pytest.mark.cflake
@pytest.mark.explorer
def test_app_data_stations_failed(wetterdienst_ui, dash_tre):
"""
Expand All @@ -89,6 +92,7 @@ def test_app_data_stations_failed(wetterdienst_ui, dash_tre):


@pytest.mark.slow
@pytest.mark.cflake
@pytest.mark.explorer
def test_app_data_values(wetterdienst_ui, dash_tre):
"""
Expand Down

0 comments on commit 4e5927d

Please sign in to comment.