From 9205e9171cfd4b488be61228d8d53b0da1d49c19 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 25 Jan 2021 17:59:35 -0500 Subject: Fill-out dataclass-related attr resolution Fixed issue where mixin attribute rules were not taking effect correctly for attributes pulled from dataclasses using the approach added in #5745. Fixes: #5876 Change-Id: I45099a42de1d9611791e72250fe0edc69bed684c --- lib/sqlalchemy/testing/fixtures.py | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/sqlalchemy/testing') diff --git a/lib/sqlalchemy/testing/fixtures.py b/lib/sqlalchemy/testing/fixtures.py index 62dd9040e..4b76e6d88 100644 --- a/lib/sqlalchemy/testing/fixtures.py +++ b/lib/sqlalchemy/testing/fixtures.py @@ -552,6 +552,7 @@ class DeclarativeMappedTest(MappedTest): metaclass=FindFixtureDeclarative, cls=DeclarativeBasic, ) + cls.DeclarativeBasic = _DeclBase # sets up cls.Basic which is helpful for things like composite -- cgit v1.2.1