Skip to content

unit test issues with postgres after upgrading to 2.0 and then downgrading to 1.10.14 #13218

Answered by potiuk
meltedhead asked this question in Q&A
Discussion options

You must be logged in to vote

You likely have to remove and recreate an existing sqlite database. Airlfow stores SQlite databases in ${AIRFLOW_HOME} or ${HOME}/airflow if AIRFLOW_HOME is not defined. when running tests. Simply wipe that directory out before running tests. That should help.

This is an sqlite test that is failing not postgres one:

    def do_execute(self, cursor, statement, parameters, context=None):
>       cursor.execute(statement, parameters)
E       sqlite3.OperationalError: no such table: connection

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by potiuk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants