Skip to content

Commit f72a9ea

Browse files
committed
try now
1 parent 1913581 commit f72a9ea

File tree

4 files changed

+7
-24
lines changed

4 files changed

+7
-24
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ default-groups = ["dev"]
3232
[dependency-groups]
3333
dev = [
3434
"pytest",
35-
"pytest-cov",
35+
"coverage",
3636
"ruff",
3737
"starlette",
3838
"quart>=0.20.0",
@@ -91,6 +91,7 @@ omit = ["mangum/_compat.py"]
9191
[tool.coverage.report]
9292
fail_under = 100
9393
skip_covered = true
94+
show_missing = true
9495
exclude_lines = [
9596
"pragma: no cover",
9697
"pragma: nocover",

scripts/test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
set -x # print executed commands to the terminal
44

5-
uv run pytest --ignore venv --cov=mangum --cov=tests --cov-fail-under=100 --cov-report=term-missing "${@}"
5+
uv run coverage run -m pytest "${@}"

tests/test_http.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,12 @@ async def app(scope, receive, send):
158158

159159

160160
@pytest.mark.parametrize("mock_aws_api_gateway_event", [["GET", None, None]], indirect=True)
161-
def test_http_exception_handler(mock_aws_api_gateway_event) -> None:
161+
def test_http_exception_handler(mock_aws_api_gateway_event: str | None) -> None:
162162
path = mock_aws_api_gateway_event["path"]
163163
app = Starlette()
164164

165165
@app.exception_handler(Exception)
166-
async def all_exceptions(request, exc):
166+
async def all_exceptions(request: Request, exc: Exception):
167167
return PlainTextResponse(content="Error!", status_code=500)
168168

169169
@app.route(path)

uv.lock

Lines changed: 2 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)