diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-08-30 01:52:36 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-08-30 02:35:35 -0400 |
| commit | 0bd074cc5ae9fed32e6f7d98d687aba3c9dd52c2 (patch) | |
| tree | bac40af7b025926c3803478d7b56addca14779c9 /test/orm | |
| parent | 51c7005dc5cc04a9ed24fbfa290e50df6fb70369 (diff) | |
| download | sqlalchemy-0bd074cc5ae9fed32e6f7d98d687aba3c9dd52c2.tar.gz | |
- continue moving things out that don't need to be there
- an existing state shouldn't need its load_options/load_path updated;
it should maintain those from its original Query source. there's no
tests that check this behavior
Diffstat (limited to 'test/orm')
| -rw-r--r-- | test/orm/test_versioning.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/orm/test_versioning.py b/test/orm/test_versioning.py index da8db0110..55ce586b5 100644 --- a/test/orm/test_versioning.py +++ b/test/orm/test_versioning.py @@ -180,6 +180,20 @@ class VersioningTest(fixtures.MappedTest): s1.close() s1.query(Foo).with_lockmode('read').get(f1s1.id) + def test_versioncheck_not_versioned(self): + """ensure the versioncheck logic skips if there isn't a + version_id_col actually configured""" + + Foo = self.classes.Foo + version_table = self.tables.version_table + + mapper(Foo, version_table) + s1 = Session() + f1s1 = Foo(value='f1 value', version_id=1) + s1.add(f1s1) + s1.commit() + s1.query(Foo).with_lockmode('read').get(f1s1.id) + @testing.emits_warning(r'.*does not support updated rowcount') @engines.close_open_connections @testing.requires.update_nowait |
