> When I try to print values from a column "s" in a table "statement" by iterating over a Session.Query object returned by Session.query(statement), I get the following
> "(sqlite3.IntegrityError) UNIQUE constraint failed: statement.s> [SQL: INSERT INTO statement (s) VALUES (?)]> [parameters: ('Test statement.',)]> (Background on this error at: https://sqlalche.me/e/gkpj)"
> Does anyone know what's causing this error?
Normally this hapens when you insert something into the database when it's primary key already exists.
Happens a lot when your tests crash and teardown doesn't happen.
Error printing column values from table query (all 3)