File tree Expand file tree Collapse file tree 3 files changed +715
-1431
lines changed
Expand file tree Collapse file tree 3 files changed +715
-1431
lines changed Original file line number Diff line number Diff line change 22authors = [
33 {name = " Federico Busetti" , email = " 729029+febus982@users.noreply.github.com" },
44]
5- requires-python = " < 3.14,>=3.10 "
5+ requires-python = " == 3.14.* "
66name = " bootstrap-fastapi-service"
77version = " 0.1.0"
88description = " "
@@ -107,10 +107,7 @@ exclude_also = [
107107[tool .mypy ]
108108files = [" src" , " tests" ]
109109exclude = [" migrations" ]
110- # Pydantic plugin causes some issues: https://github.com/pydantic/pydantic-settings/issues/403
111- # plugins = "pydantic.mypy,strawberry.ext.mypy_plugin"
112- plugins = " strawberry.ext.mypy_plugin"
113- python_version = " 3.10"
110+ plugins = " pydantic.mypy,strawberry.ext.mypy_plugin"
114111
115112[[tool .mypy .overrides ]]
116113module = [
@@ -132,7 +129,6 @@ testpaths = [
132129]
133130
134131[tool .ruff ]
135- target-version = " py39"
136132line-length = 120
137133# The `src` settings makes sure that imports are correctly
138134# evaluated during formatting when using nested `pyproject.toml`
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ async def test_hello_renders_what_returned_by_decoder(
2727 assert '"token": "some_token"' in response .text
2828
2929
30- async def test_hello_returns_403_without_token (testapp : FastAPI ):
30+ async def test_hello_returns_401_without_token (testapp : FastAPI ):
3131 testapp .dependency_overrides [decode_jwt ] = _fake_decode_jwt
3232 ac = TestClient (app = testapp , base_url = "http://test" )
3333 response = ac .get ("/hello/" )
34- assert response .status_code == status .HTTP_403_FORBIDDEN
34+ assert response .status_code == status .HTTP_401_UNAUTHORIZED
You can’t perform that action at this time.
0 commit comments