diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2023-03-27 09:48:58 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2023-03-27 09:55:57 -0400 |
commit | 24dd3d8c90876a05377d04910819dcd5d25aed4e (patch) | |
tree | c679ba3965e9f522b307381ebfded9e5367582fc /test/base/test_examples.py | |
parent | c7ce7ff0225fe0ddaf63f0706429b885410de365 (diff) | |
download | sqlalchemy-24dd3d8c90876a05377d04910819dcd5d25aed4e.tar.gz |
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
Diffstat (limited to 'test/base/test_examples.py')
-rw-r--r-- | test/base/test_examples.py | 10 |
1 files changed, 9 insertions, 1 deletions
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 |