Browse Source

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

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@71855 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 7 years ago
parent
commit
01b22dd703
1 changed files with 4 additions and 0 deletions
  1. 4 0
      db/db.copy/testsuite/test_dbcopy.py

+ 4 - 0
db/db.copy/testsuite/test_dbcopy.py

@@ -9,6 +9,10 @@ class TestDbCopy(TestCase):
     outable = 'my_' + invect
     outable = 'my_' + invect
 
 
     @classmethod
     @classmethod
+    def setUpClass(cls):
+        cls.runModule('db.connect', flags='c')
+
+    @classmethod
     def tearDownClass(cls):
     def tearDownClass(cls):
         cls.runModule('db.droptable', table=cls.outable, flags='f',
         cls.runModule('db.droptable', table=cls.outable, flags='f',
                       database='$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db')
                       database='$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db')