Sofie Van Landeghem
6 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with
10 additions and
1 deletions
-
.github/workflows/test.yml
-
pyproject.toml
-
requirements-tests.txt
-
tests/test_tutorial/test_sql_databases/test_tutorial001.py
-
tests/test_tutorial/test_sql_databases/test_tutorial002.py
|
|
@ -48,6 +48,7 @@ jobs: |
|
|
|
strategy: |
|
|
|
matrix: |
|
|
|
python-version: |
|
|
|
- "3.14" |
|
|
|
- "3.13" |
|
|
|
- "3.12" |
|
|
|
- "3.11" |
|
|
@ -55,6 +56,9 @@ jobs: |
|
|
|
- "3.9" |
|
|
|
- "3.8" |
|
|
|
pydantic-version: ["pydantic-v1", "pydantic-v2"] |
|
|
|
exclude: |
|
|
|
- python-version: "3.14" |
|
|
|
pydantic-version: "pydantic-v1" |
|
|
|
fail-fast: false |
|
|
|
steps: |
|
|
|
- name: Dump GitHub context |
|
|
|
|
|
@ -39,6 +39,7 @@ classifiers = [ |
|
|
|
"Programming Language :: Python :: 3.11", |
|
|
|
"Programming Language :: Python :: 3.12", |
|
|
|
"Programming Language :: Python :: 3.13", |
|
|
|
"Programming Language :: Python :: 3.14", |
|
|
|
"Topic :: Internet :: WWW/HTTP :: HTTP Servers", |
|
|
|
"Topic :: Internet :: WWW/HTTP", |
|
|
|
] |
|
|
|
|
|
@ -4,7 +4,7 @@ pytest >=7.1.3,<9.0.0 |
|
|
|
coverage[toml] >= 6.5.0,< 8.0 |
|
|
|
mypy ==1.14.1 |
|
|
|
dirty-equals ==0.9.0 |
|
|
|
sqlmodel==0.0.25 |
|
|
|
sqlmodel==0.0.27 |
|
|
|
flask >=1.1.2,<4.0.0 |
|
|
|
anyio[trio] >=3.2.1,<5.0.0 |
|
|
|
PyJWT==2.9.0 |
|
|
|
|
|
@ -45,6 +45,8 @@ def get_client(request: pytest.FixtureRequest): |
|
|
|
|
|
|
|
with TestClient(mod.app) as c: |
|
|
|
yield c |
|
|
|
# Clean up connection explicitely to avoid resource warning |
|
|
|
mod.engine.dispose() |
|
|
|
|
|
|
|
|
|
|
|
def test_crud_app(client: TestClient): |
|
|
|
|
|
@ -45,6 +45,8 @@ def get_client(request: pytest.FixtureRequest): |
|
|
|
|
|
|
|
with TestClient(mod.app) as c: |
|
|
|
yield c |
|
|
|
# Clean up connection explicitely to avoid resource warning |
|
|
|
mod.engine.dispose() |
|
|
|
|
|
|
|
|
|
|
|
def test_crud_app(client: TestClient): |
|
|
|