]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Support get_schema_names for SQLite
authorBrian Van Klaveren <brianv0@users.noreply.github.com>
Wed, 9 Sep 2015 21:23:27 +0000 (14:23 -0700)
committerBrian Van Klaveren <brianv0@users.noreply.github.com>
Wed, 9 Sep 2015 21:23:27 +0000 (14:23 -0700)
Should return "main" and the names of attached databases.

test/dialect/test_sqlite.py

index 17920c1272fef9cc3336413234493a2ba1e96396..2e929de9c56cec5cf574c1113627dc491b4fa2bb 100644 (file)
@@ -581,6 +581,11 @@ class AttachedMemoryDBTest(fixtures.TestBase):
         insp = inspect(self.conn)
         eq_(insp.get_table_names("test_schema"), ["created"])
 
+    def test_schema_names(self):
+        self._fixture()
+        insp = inspect(self.conn)
+        eq_(insp.get_schema_names(), ["main", "test_schema"])
+
     def test_reflect_system_table(self):
         meta = MetaData(self.conn)
         alt_master = Table(