You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Connor Ameres (JIRA)" <ji...@apache.org> on 2017/04/18 00:26:41 UTC

[jira] [Commented] (AIRFLOW-602) Unit Test Cases Doesn't run in Master Branch

    [ https://issues.apache.org/jira/browse/AIRFLOW-602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15971885#comment-15971885 ] 

Connor Ameres commented on AIRFLOW-602:
---------------------------------------

I had a similar issue and believe I solved it by deleting the $AIRFLOW_HOME directory and then running `$ airflow initdb` again. I now am able to run the unit tests successfully.

> Unit Test Cases Doesn't run in Master Branch
> --------------------------------------------
>
>                 Key: AIRFLOW-602
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-602
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: tests
>         Environment: Mac
>            Reporter: Siddharth
>
> Trying to run test cases in master branch
> I am trying to run airflow unit tests on my mac
> but I get this error:
> ERROR: Failure: OperationalError ((sqlite3.OperationalError) no such table: task_instance [SQL: u'DELETE FROM task_instance WHERE task_instance.dag_id = ?'] [parameters: ('unit_tests',)])
> I basically checked out master version of the repo and ran run_unit_tests.sh
> any idea whats going on? Looks like the table task_instance is not created while running test case file.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)