You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/04/01 14:20:03 UTC

[jira] [Commented] (AIRFLOW-4058) Rename test files

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

ASF subversion and git services commented on AIRFLOW-4058:
----------------------------------------------------------

Commit 68fc6dc17bad7a2c1689135904a50979c359b717 in airflow's branch refs/heads/v1-10-test from Peter van 't Hof
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=68fc6dc ]

[AIRFLOW-4058] Name models test file to get automatically picked up (#4901)

We had `from .models import *` inside test/__init__.py as a kludge around this test
file not being named according to expected Python conventions. Renaming the file
makes more test tools happier (and makes it easier to run a single test file without
importing half of the test tree which the current approach suffers from)

> Rename test files
> -----------------
>
>                 Key: AIRFLOW-4058
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4058
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: tests
>            Reporter: Peter van 't Hof
>            Assignee: Peter van 't Hof
>            Priority: Major
>
> Currently we have `tests/core.py` and `tests/models.py`. It's better to rename this to  `tests/test_core.py` and `tests/test_models.py`. This is follow more the python conventions. This also offers better integration with ide's.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)