❌ Test failed
Test | test_dbcopy |
Testsuite | ./db/db.copy |
Test file | ./db/db.copy/testsuite/test_dbcopy.py |
Status | FAILED |
Return code | 1 |
Number of tests | 3 |
Successful tests | 0 |
Failed tests | 3 |
Percent successful | 0% |
Test duration | 0:00:00.724805 |
/usr/lib/python2.7/xml/etree/ElementTree.py:1638: DeprecationWarning: This method of XMLParser is deprecated. Define doctype() method on the TreeBuilder target. DeprecationWarning, EEE ====================================================================== ERROR: test_fromtable (__main__.TestDbCopy) ---------------------------------------------------------------------- Traceback (most recent call last): File "db/db.copy/testsuite/test_dbcopy.py", line 23, 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_driver='sqlite', from_database='$GISDBASE/$LOCATION_NAME/PERMANENT/sqlite/sqlite.db', from_table='zipcodes', to_driver='sqlite', to_database='$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db', to_table='my_zipcodes', overwrite=True). See the following errors: WARNING: Table <zipcodes> not found in database <$GISDBASE/$LOCATION_NAME/PERMANENT/sqlite/sqlite.db> using driver <sqlite> ====================================================================== ERROR: test_select (__main__.TestDbCopy) ---------------------------------------------------------------------- Traceback (most recent call last): File "db/db.copy/testsuite/test_dbcopy.py", line 32, 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_driver='sqlite', from_database='$GISDBASE/$LOCATION_NAME/PERMANENT/sqlite/sqlite.db', to_driver='sqlite', to_database='$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db', to_table='my_zipcodes', select="SELECT * from zipcodes WHERE NAME='RALEIGH'", overwrite=True). See the following errors: DBMI-SQLite driver error: Error in sqlite3_prepare(): SELECT * from zipcodes WHERE NAME='RALEIGH' no such table: zipcodes DBMI-SQLite driver error: Error in sqlite3_prepare(): SELECT * from zipcodes WHERE NAME='RALEIGH' no such table: zipcodes WARNING: Unable to open select cursor: 'SELECT * from zipcodes WHERE NAME='RALEIGH'' WARNING: Copy table failed ====================================================================== ERROR: test_where (__main__.TestDbCopy) ---------------------------------------------------------------------- Traceback (most recent call last): File "db/db.copy/testsuite/test_dbcopy.py", line 41, 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_driver='sqlite', from_database='$GISDBASE/$LOCATION_NAME/PERMANENT/sqlite/sqlite.db', from_table='zipcodes', to_driver='sqlite', to_database='$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db', to_table='my_zipcodes', where="NAME='RALEIGH'", overwrite=True). See the following errors: WARNING: Table <zipcodes> not found in database <$GISDBASE/$LOCATION_NAME/PERMANENT/sqlite/sqlite.db> using driver <sqlite> ---------------------------------------------------------------------- Ran 3 tests in 0.123s FAILED (errors=3)