test_db_dropcolumn

./scripts/db.dropcolumn – test_db_dropcolumn

Test failed

Testtest_db_dropcolumn
Testsuite./scripts/db.dropcolumn
Test file./scripts/db.dropcolumn/testsuite/test_db_dropcolumn.py
StatusFAILED
Return code1
Number of tests2
Successful tests0
Failed tests2
Percent successful0%
Test duration0:00:01.065195

Supplementary files

Standard error output (stderr)

Copy vector <roadsmajor@PERMANENT> to current mapset as <myroads>
Default driver / database set to:
driver: sqlite
database: $GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db
/usr/lib/python2.7/xml/etree/ElementTree.py:1638: DeprecationWarning: This method of XMLParser is deprecated.  Define doctype() method on the TreeBuilder target.
  DeprecationWarning,
FFRemoving vector <myroads>

======================================================================
FAIL: test_drop_column_check (__main__.TestDbDropColumn)
Drop column check, the column should still be in the table
----------------------------------------------------------------------
Traceback (most recent call last):
  File "scripts/db.dropcolumn/testsuite/test_db_dropcolumn.py", line 36, in test_drop_column_check
    self.assertModule(module)
  File "etc/python/grass/gunittest/case.py", line 1164, in assertModule
    self.fail(self._formatMessage(msg, stdmsg))
AssertionError: Running <db.dropcolumn> module ended with non-zero return code (1)
Called: db.dropcolumn(table='myroads', column='SHAPE_LEN')
See the following errors:
DB settings already defined, nothing to do
ERROR: Column <SHAPE_LEN> not found in table


======================================================================
FAIL: test_drop_column_with_force (__main__.TestDbDropColumn)
Drop column with force, the column should not be in the table
----------------------------------------------------------------------
Traceback (most recent call last):
  File "scripts/db.dropcolumn/testsuite/test_db_dropcolumn.py", line 47, in test_drop_column_with_force
    self.assertModule(module)
  File "etc/python/grass/gunittest/case.py", line 1164, in assertModule
    self.fail(self._formatMessage(msg, stdmsg))
AssertionError: Running <db.dropcolumn> module ended with non-zero return code (1)
Called: db.dropcolumn(table='myroads', column='SHAPE_LEN', flags=u'f')
See the following errors:
DB settings already defined, nothing to do
Forcing ...
ERROR: Column <SHAPE_LEN> not found in table


----------------------------------------------------------------------
Ran 2 tests in 0.372s
FAILED (failures=2)