瀏覽代碼

db.columns: include db initialization in the test to fix it

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@71856 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 7 年之前
父節點
當前提交
08cc55ccee
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      db/db.columns/testsuite/test_dbcolumns.py

+ 5 - 1
db/db.columns/testsuite/test_dbcolumns.py

@@ -19,7 +19,11 @@ SHAPE_Area
 class TestDbColumns(TestCase):
     invect = 'zipcodes'
     mapset = '$GISDBASE/$LOCATION_NAME/PERMANENT/sqlite/sqlite.db'
-    
+
+    @classmethod
+    def setUpClass(cls):
+        cls.runModule('db.connect', flags='c')
+
     def test_dbcols(self):
         cols = read_command('db.columns', table=self.invect,
                             database=self.mapset)