test_dbcopy

./db/db.copy – test_dbcopy

Test failed

Testtest_dbcopy
Testsuite./db/db.copy
Test file./db/db.copy/testsuite/test_dbcopy.py
StatusFAILED
Return code1
Number of tests3
Successful tests0
Failed tests4
Percent successful0%
Test duration0:00:01.587721

Supplementary files

Standard error output (stderr)

/usr/lib/python2.7/xml/etree/ElementTree.py:1638: DeprecationWarning: This method of XMLParser is deprecated.  Define doctype() method on the TreeBuilder target.
  DeprecationWarning,
EEEE
======================================================================
ERROR: test_fromtable (__main__.TestDbCopy)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "db/db.copy/testsuite/test_dbcopy.py", line 19, in test_fromtable
    overwrite=True)
  File "etc/python/grass/gunittest/case.py", line 1095, in runModule
    errors=errors)
CalledModuleError: Module run 1 db.copy ended with error
Process ended with non-zero return code db.copy(from_database='$GISDBASE/$LOCATION_NAME/PERMANENT/sqlite/sqlite.db', from_table='zipcodes', to_table='my_zipcodes', overwrite=True). See the following errors:
WARNING: Unable to start driver <(null)>
WARNING: Unable open database <$GISDBASE/$LOCATION_NAME/PERMANENT/sqlite/sqlite.db> by driver <(null)>
WARNING: Unable to start driver <(null)>
WARNING: Copy table failed


======================================================================
ERROR: test_select (__main__.TestDbCopy)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "db/db.copy/testsuite/test_dbcopy.py", line 28, in test_select
    select="SELECT * from {inp} WHERE NAME='RALEIGH'".format(inp=self.invect))
  File "etc/python/grass/gunittest/case.py", line 1095, in runModule
    errors=errors)
CalledModuleError: Module run 1 db.copy ended with error
Process ended with non-zero return code db.copy(from_database='$GISDBASE/$LOCATION_NAME/PERMANENT/sqlite/sqlite.db', to_table='my_zipcodes', select="SELECT * from zipcodes WHERE NAME='RALEIGH'", overwrite=True). See the following errors:
WARNING: Unable to start driver <(null)>
WARNING: Copy table failed


======================================================================
ERROR: test_where (__main__.TestDbCopy)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "db/db.copy/testsuite/test_dbcopy.py", line 37, in test_where
    from_table=self.invect, where="NAME='RALEIGH'")
  File "etc/python/grass/gunittest/case.py", line 1095, in runModule
    errors=errors)
CalledModuleError: Module run 1 db.copy ended with error
Process ended with non-zero return code db.copy(from_database='$GISDBASE/$LOCATION_NAME/PERMANENT/sqlite/sqlite.db', from_table='zipcodes', to_table='my_zipcodes', where="NAME='RALEIGH'", overwrite=True). See the following errors:
WARNING: Unable to start driver <(null)>
WARNING: Unable open database <$GISDBASE/$LOCATION_NAME/PERMANENT/sqlite/sqlite.db> by driver <(null)>
WARNING: Unable to start driver <(null)>
WARNING: Copy table failed


======================================================================
ERROR: tearDownClass (__main__.TestDbCopy)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "db/db.copy/testsuite/test_dbcopy.py", line 14, in tearDownClass
    database='$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db')
  File "etc/python/grass/gunittest/case.py", line 1095, in runModule
    errors=errors)
CalledModuleError: Module run 1 db.droptable ended with error
Process ended with non-zero return code db.droptable(database='$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db', table='my_zipcodes', flags=u'f'). See the following errors:
Forcing ...
ERROR: Table <my_zipcodes> not found in database <$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db>


----------------------------------------------------------------------
Ran 3 tests in 0.121s
FAILED (errors=4)