Browse Source

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 years ago
parent
commit
08cc55ccee
1 changed files with 5 additions and 1 deletions
  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)