Skip to content

Commit eb20ebb

Browse files
abondara_bondar
andauthored
Cleanup, fixing CI fails (#1591)
* Cleanup, fixing CI fails * Fix tests * Fix tests * Fix tests * Pin old coverage version * try other version of coveralls * Change asserts in faulty test * Fix test * Fix test --------- Co-authored-by: a_bondar <[email protected]>
1 parent 0c8efde commit eb20ebb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+427
-314
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
TORTOISE_MSSQL_DRIVER: ODBC Driver 18 for SQL Server
4646
strategy:
4747
matrix:
48-
python-version: ["3.8", "3.9", "3.10", "3.11"]
48+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
4949
steps:
5050
- uses: actions/cache@v3
5151
with:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ up:
1818
@poetry update
1919

2020
deps:
21-
@poetry install -E asyncpg -E aiomysql -E asyncmy -E accel -E psycopg -E asyncodbc
21+
@poetry install -E asyncpg -E aiomysql -E accel -E psycopg -E asyncodbc
2222

2323
check: deps build
2424
ifneq ($(shell which black),)

examples/basic.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
This example demonstrates most basic operations with single model
33
"""
4+
45
from tortoise import Tortoise, fields, run_async
56
from tortoise.models import Model
67

examples/basic_comments.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
This example demonstrates most basic operations with single model
33
and a Table definition generation with comment support
44
"""
5+
56
from tortoise import Tortoise, fields, run_async
67
from tortoise.models import Model
78

examples/complex_filtering.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
Key points are filtering by related names and using Q objects
55
"""
6+
67
from tortoise import Tortoise, fields, run_async
78
from tortoise.expressions import Q
89
from tortoise.models import Model

examples/manual_sql.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
This example demonstrates executing manual SQL queries
33
"""
4+
45
from tortoise import Tortoise, connections, fields, run_async
56
from tortoise.models import Model
67
from tortoise.transactions import in_transaction

examples/postgres.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
This example showcases postgres features
33
"""
4+
45
from tortoise import Tortoise, fields, run_async
56
from tortoise.models import Model
67

examples/pydantic/basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
This example demonstrates pydantic serialisation
33
"""
4+
45
from tortoise import Tortoise, fields, run_async
56
from tortoise.contrib.pydantic import pydantic_model_creator, pydantic_queryset_creator
67
from tortoise.models import Model
@@ -60,7 +61,6 @@ class Meta:
6061
async def run():
6162
await Tortoise.init(db_url="sqlite://:memory:", modules={"models": ["__main__"]})
6263
await Tortoise.generate_schemas()
63-
6464
Event_Pydantic = pydantic_model_creator(Event)
6565
Event_Pydantic_List = pydantic_queryset_creator(Event)
6666
Tournament_Pydantic = pydantic_model_creator(Tournament)

examples/pydantic/early_init.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
This example demonstrates pydantic serialisation, and how to use early partial init.
33
"""
4+
45
from tortoise import Tortoise, fields
56
from tortoise.contrib.pydantic import pydantic_model_creator
67
from tortoise.models import Model

examples/pydantic/recursive.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
This example demonstrates pydantic serialisation of a recursively cycled model.
33
"""
4+
45
from tortoise import Tortoise, fields, run_async
56
from tortoise.contrib.pydantic import pydantic_model_creator
67
from tortoise.exceptions import NoValuesFetched

0 commit comments

Comments
 (0)