From 24dd3d8c90876a05377d04910819dcd5d25aed4e Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 27 Mar 2023 09:48:58 -0400 Subject: support DeclarativeBase for versioned history example Fixed issue in "versioned history" example where using a declarative base that is derived from :class:`_orm.DeclarativeBase` would fail to be mapped. Additionally, repaired the given test suite so that the documented instructions for running the example using Python unittest now work again. Change-Id: I164a5b8dbdd01e3d815eb356f7b7cadf226ca296 References: #9546 --- test/base/test_examples.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/base/test_examples.py b/test/base/test_examples.py index 50f0c01f2..4baddfb10 100644 --- a/test/base/test_examples.py +++ b/test/base/test_examples.py @@ -15,9 +15,17 @@ test_versioning = __import__( ).versioned_history.test_versioning -class VersionedRowsTest( +class VersionedRowsTestLegacyBase( test_versioning.TestVersioning, fixtures.RemoveORMEventsGlobally, fixtures.TestBase, ): pass + + +class VersionedRowsTestNewBase( + test_versioning.TestVersioningNewBase, + fixtures.RemoveORMEventsGlobally, + fixtures.TestBase, +): + pass -- cgit v1.2.1