Browse Source

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

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@71858 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 7 years ago
parent
commit
5a6afd42e0
1 changed files with 6 additions and 2 deletions
  1. 6 2
      db/db.describe/testsuite/test_dbdescribe.py

+ 6 - 2
db/db.describe/testsuite/test_dbdescribe.py

@@ -170,12 +170,16 @@ Column 12: SHAPE_Area:DOUBLE PRECISION:20
 class TestDbCopy(TestCase):
     invect = 'zipcodes'
     mapset = '$GISDBASE/$LOCATION_NAME/PERMANENT/sqlite/sqlite.db'
-    
+
+    @classmethod
+    def setUpClass(cls):
+        cls.runModule('db.connect', flags='c')
+
     def test_describe(self):
         cols = read_command('db.describe', table=self.invect,
                             database=self.mapset)
         self.assertEqual(first=cols, second=output)
-        
+
     def test_columns(self):
         cols = read_command('db.describe', table=self.invect, flags='c',
                             database=self.mapset)