diff options
author | Rodrigo Menezes <rodrigo.menezes@moat.com> | 2014-09-05 13:54:48 -0400 |
---|---|---|
committer | Rodrigo Menezes <rodrigo.menezes@moat.com> | 2014-09-05 13:54:48 -0400 |
commit | fd2faa9bc2c6d2d1b0b8e1738f0bce21e2527bb0 (patch) | |
tree | 150e1e77ee0a139d54b0363751e575aa078c43f2 /test/dialect/postgresql/test_reflection.py | |
parent | 619b0be0ce05c394613d8565c08c09cac10cdd88 (diff) | |
download | sqlalchemy-pr/128.tar.gz |
Added documentation. Changed my mind - added get_foreign_table_names() only to PGInspect and not in the Dialect. Added tests for PGInspect and removed a bunch of the old test scaffolding.pr/128
Diffstat (limited to 'test/dialect/postgresql/test_reflection.py')
-rw-r--r-- | test/dialect/postgresql/test_reflection.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/dialect/postgresql/test_reflection.py b/test/dialect/postgresql/test_reflection.py index 567aec927..3bc4cd715 100644 --- a/test/dialect/postgresql/test_reflection.py +++ b/test/dialect/postgresql/test_reflection.py @@ -107,6 +107,12 @@ class AltRelkindReflectionTest(fixtures.TestBase, AssertsExecutionResults): (89, 'd1',) ] + def test_get_foreign_table_names(self): + inspector = inspect(testing.db) + connection = testing.db.connect() + ft_names = inspector.get_foreign_table_names(connection) + assert u'test_foreigntable' in ft_names + class DomainReflectionTest(fixtures.TestBase, AssertsExecutionResults): """Test PostgreSQL domains""" |