Skip to content

Commit

Permalink
Flask and pytest-blockage
Browse files Browse the repository at this point in the history
  • Loading branch information
jantman committed Jun 12, 2024
1 parent 1face97 commit d492336
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 3 deletions.
12 changes: 10 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,17 @@ def mypy(session: Session) -> None:
def tests(session: Session) -> None:
"""Run the test suite."""
session.install(".")
session.install("coverage[toml]", "pytest", "pygments")
session.install("coverage[toml]", "pytest", "pygments", "pytest-blockage")
try:
session.run("coverage", "run", "--parallel", "-m", "pytest", *session.posargs)
session.run(
"coverage",
"run",
"--parallel",
"-m",
"pytest",
"--blockage",
*session.posargs,
)
finally:
if session.interactive:
session.notify("coverage", posargs=[])
Expand Down
77 changes: 76 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Changelog = "https://github.com/jantman/machine_access_control/releases"

[tool.poetry.dependencies]
python = "^3.12"
flask = "^3.0.3"

[tool.poetry.dev-dependencies]
Pygments = ">=2.10.0"
Expand All @@ -44,6 +45,9 @@ pyupgrade = ">=2.29.1"
safety = ">=1.10.3"
typeguard = ">=2.13.3"

[tool.poetry.group.dev.dependencies]
pytest-blockage = "^0.2.4"

[tool.coverage.paths]
source = ["src", "*/site-packages"]
tests = ["tests", "*/tests"]
Expand Down

0 comments on commit d492336

Please sign in to comment.