Explorar el Código

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á hace 7 años
padre
commit
01b22dd703
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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
 
     @classmethod
+    def setUpClass(cls):
+        cls.runModule('db.connect', flags='c')
+
+    @classmethod
     def tearDownClass(cls):
         cls.runModule('db.droptable', table=cls.outable, flags='f',
                       database='$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db')