Closed jgreenemi closed 4 years ago
bot.py
(env) C:\Users\clyde\prjx\xkcdbot>python -m unittest .....E ====================================================================== ERROR: test_id_statistics (test.test_database.TestDatabase) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Users\clyde\prjx\xkcdbot\test\test_database.py", line 19, in test_id_statistics self.database.increment_id("1") File "C:\Users\clyde\prjx\xkcdbot\db\database.py", line 109, in increment_id self.cursor.execute(sql, (id,)) sqlite3.OperationalError: near "ON": syntax error
Ran 6 tests in 0.505s
FAILED (errors=1)
This failure occurred on `master` before I introduced any changes. Commenting out `test_database.py` shows tests passing:
Ran 6 tests in 0.529s
OK
Notes
bot.py
according to PEP8 and resorted imports, removing unused statements.Testing
Ran 6 tests in 0.505s
FAILED (errors=1)
(env) C:\Users\clyde\prjx\xkcdbot>python -m unittest discover ....Comment size 10001 exceeded 10000 response char limit, saving and skipping. ..
Ran 6 tests in 0.529s
OK