From 002f4987900ec0aba97b48e1c5069a7dec5a5bd1 Mon Sep 17 00:00:00 2001 From: abondar Date: Sun, 13 Oct 2024 22:54:45 +0300 Subject: [PATCH] Debug odbc CI --- CHANGELOG.rst | 15 ++++++++++++++- tests/test_concurrency.py | 4 ++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index e5e4b06c0..bcbe2c4ed 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -10,7 +10,20 @@ Changelog ==== 0.21.7 ------ -- Fix bug when using annotate and count at the same time but the annotation does not match anything, leading to an IndexError +Fixed +^^^^^ +- Fix unittest error with pydantic2.9 (#1734) +- Fix bug when using annotate and count at the same time but the annotation does not match anything, leading to an IndexError (#1707) +- Added missing field_type for TimeDeltaField (#1462) (#1699) +- improve jsonfield type hint (#1700) +- Fix bug in tortoise.models.Model When a QuerySet uses the only function and then uses the print function to print the returned result, an AttributeError is generated (#1724) +- Update the pylint plugin to latest astroid version (#1708) + +Added +^^^^^ +- Add POSIX Regex support for PostgreSQL and MySQL (#1714) +- support app=None for tortoise.contrib.fastapi.RegisterTortoise (#1733) + 0.21.6 ------ diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py index 6bd05442e..16ba4958a 100644 --- a/tests/test_concurrency.py +++ b/tests/test_concurrency.py @@ -3,7 +3,7 @@ from tests.testmodels import Tournament, UniqueName from tortoise.contrib import test -from tortoise.contrib.test.condition import NotEQ +from tortoise.contrib.test.condition import NotEQ, NotIn from tortoise.transactions import in_transaction @@ -31,7 +31,7 @@ async def test_nonconcurrent_get_or_create(self): self.assertEqual(una[0], unas[0][0]) @test.skipIf(sys.version_info < (3, 7), "aiocontextvars backport not handling this well") - @test.requireCapability(dialect=NotEQ("mssql")) + @test.requireCapability(dialect=NotIn("mssql", "oracle")) async def test_concurrent_get_or_create(self): unas = await asyncio.gather(*[UniqueName.get_or_create(name="d") for _ in range(10)]) una_created = [una[1] for una in unas if una[1] is True]