Skip to content

Commit e219e49

Browse files
committed
Update test fixture
1 parent 2d36097 commit e219e49

3 files changed

Lines changed: 103 additions & 100 deletions

File tree

pyproject.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ requires-python = ">=3.14"
55
dependencies = [
66
"aiohttp>=3.13.3",
77
"asyncpg>=0.31.0",
8-
"azure-monitor-opentelemetry>=1.8.5",
9-
"fastapi[standard-no-fastapi-cloud-cli]>=0.128.0",
8+
"azure-monitor-opentelemetry>=1.8.6",
9+
"fastapi[standard-no-fastapi-cloud-cli]>=0.128.1",
1010
"greenlet>=3.3.1",
1111
"pydantic>=2.12.5",
1212
"pydantic-settings[azure-key-vault]>=2.12.0",
1313
"sqlmodel>=0.0.32",
14-
"wirio>=0.9.0",
14+
"wirio>=0.11.0",
1515
]
1616

1717
[dependency-groups]
@@ -22,15 +22,15 @@ dev = [
2222
"pytest-cov>=7.0.0",
2323
"pytest-mock>=3.15.1",
2424
"ruff>=0.15.0",
25-
"ty>=0.0.14",
25+
"ty>=0.0.15",
2626
]
2727

2828
[build-system]
2929
requires = ["uv_build"]
3030
build-backend = "uv_build"
3131

3232
[tool.uv]
33-
required-version = ">=0.9.16,<0.10.0"
33+
required-version = ">=0.10.0,<0.11.0"
3434

3535
[tool.ty.terminal]
3636
error-on-warning = true
@@ -54,6 +54,7 @@ ignore = [
5454
"TC", # flake8-type-checking
5555
"FBT001", # boolean-type-hint-positional-argument
5656
"FBT002", # boolean-default-value-positional-argument
57+
"PT013", # pytest-incorrect-pytest-import
5758
]
5859

5960
[tool.pytest]

tests/integration/api/conftest.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@
88
from python_template.api.main import app
99

1010

11-
@pytest.fixture(autouse=True)
12-
def test_client() -> Generator[None]:
13-
with TestClient(app):
14-
yield
15-
16-
1711
@pytest.fixture
18-
def service_provider() -> ServiceProvider:
19-
return get_service_provider(app)
12+
def service_provider() -> Generator[ServiceProvider]:
13+
with TestClient(app):
14+
yield get_service_provider(app)

0 commit comments

Comments
 (0)