Skip to content

Commit

Permalink
Mark examples tests as slow
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobsvante committed Mar 29, 2021
1 parent b28b9f7 commit 98e4292
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ PyJWT = {version = "^2", extras = ["crypto"]}
aioresponses = "^0.7.2"
black = "^20.8b1"
isort = "^5.7.0"
pytest = ">=4.0.0"
pytest = "^6"
pytest-cov = "^2.11.1"
requests = "^2.25.1"
mypy = "^0.812"
Expand All @@ -59,3 +59,8 @@ build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 88
target-version = ['py37', 'py38']

[tool.pytest.ini_options]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]
1 change: 1 addition & 0 deletions tests/examples/test_app1.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
pytestmark = [
pytest.mark.skipif(not app1_path.exists(), reason="app1 example couldn't be found"),
pytest.mark.skipif(uvicorn is None, reason="`uvicorn` isn't installed"),
pytest.mark.slow,
]


Expand Down

0 comments on commit 98e4292

Please sign in to comment.