Skip to content

Commit

Permalink
Adjust parallel testing to exclude some tests not concurrency-safe yet
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Aug 30, 2021
1 parent e9ea401 commit 1441052
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ aenum = "^3.0.0"
click = "^7.1.2"
click-params = "^0.1.1"
cloup = "^0.8.0"
requests-ftp = "^0.3.1"
fsspec = {git = "https://github.com/earthobservations/filesystem_spec", rev = "integration"}
fsspec = "2021.7.0"

# Optional dependencies aka. "extras"
matplotlib = { version = "^3.3.2", optional = true }
Expand Down Expand Up @@ -247,10 +246,10 @@ black = "black wetterdienst example tests"
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' tests"
test = "pytest -vvv tests"
test-parallel = "pytest -vvv --numprocesses=4 -m 'not (explorer or cflake)' tests"
coverage = "pytest --cov=wetterdienst tests"
coverage-parallel = "pytest --cov=wetterdienst --numprocesses=4 -m 'not explorer' tests"
coverage-parallel = "pytest --cov=wetterdienst --numprocesses=4 -m 'not (explorer or cflake)' tests"
#export_requirements = "poetry export --without-hashes --dev --output requirements.txt"
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"
Expand All @@ -262,6 +261,7 @@ markers = [
"slow: Slow tests.",
"sql: All tests related to SQL.",
"explorer: All tests related to the explorer UI.",
"cflake: Tests which are flaky under concurrency",
]
addopts = "-vvv --webdriver=Firefox --headless"

Expand Down
2 changes: 2 additions & 0 deletions tests/example/test_regular_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@
)


@pytest.mark.cflake
@pytest.mark.parametrize("example", EXAMPLES)
def test_regular_examples(example):
assert example.main() is None


@pytest.mark.cflake
def test_radar_examples():

pytest.importorskip("osgeo.gdal")
Expand Down

0 comments on commit 1441052

Please sign in to comment.