Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
🐛 fix: full coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
gazorby committed Jan 12, 2023
1 parent eee7ab3 commit 228049d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/starlite_saqlalchemy/log/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ async def extract_request_data(self, request: Request) -> dict[str, Any]:
value = await value
except RuntimeError:
if key != REQUEST_BODY_FIELD:
raise
raise # pragma: no cover
value = None
data[key] = value
return data
Expand Down
10 changes: 5 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[gh-actions]
python =
3.10: py310
3.11: py311,integration
3.10: py310,noextras
3.11: py311,noextras,integration

[tox]
envlist = pylint,mypy,pyright,py310,py311,integration,coverage
envlist = pylint,mypy,pyright,py310,py311,noextras,integration,coverage
isolated_build = true

[testenv]
Expand Down Expand Up @@ -67,14 +67,14 @@ deps =
allowlist_externals =
docker
commands =
coverage run -a -m pytest tests/integration {posargs}
pytest tests/integration {posargs}

[testenv:noextras]
basepython = python3.11
deps =
-r{toxinidir}/dev-noextras.requirements.txt
commands =
pytest tests/unit/test_init_plugin_no_extras.py {posargs}
coverage run -p -m pytest tests/unit/test_init_plugin_no_extras.py {posargs}

[testenv:docs]
basepython = python3.11
Expand Down

0 comments on commit 228049d

Please sign in to comment.