[GRASS-SVN] r71858 - grass/trunk/db/db.describe/testsuite
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Nov 27 16:09:32 PST 2017
Author: annakrat
Date: 2017-11-27 16:09:32 -0800 (Mon, 27 Nov 2017)
New Revision: 71858
Modified:
grass/trunk/db/db.describe/testsuite/test_dbdescribe.py
Log:
db.describe: include db initialization in the test to fix it
Modified: grass/trunk/db/db.describe/testsuite/test_dbdescribe.py
===================================================================
--- grass/trunk/db/db.describe/testsuite/test_dbdescribe.py 2017-11-28 00:07:47 UTC (rev 71857)
+++ grass/trunk/db/db.describe/testsuite/test_dbdescribe.py 2017-11-28 00:09:32 UTC (rev 71858)
@@ -170,12 +170,16 @@
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)
More information about the grass-commit
mailing list