[ https://issues.apache.org/jira/browse/AIRFLOW-5893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16974064#comment-16974064 ]
ASF subversion and git services commented on AIRFLOW-5893: ---------------------------------------------------------- Commit 61775833f7467f010b094c9cadbaccb15138f4e6 in airflow's branch refs/heads/master from Kamil Breguła [ https://gitbox.apache.org/repos/asf?p=airflow.git;h=6177583 ] [AIRFLOW-5918][part of AIRFLOW-5893] Group tests for the Pools command (#6567) > Refactor CLI tests > ------------------ > > Key: AIRFLOW-5893 > URL: https://issues.apache.org/jira/browse/AIRFLOW-5893 > Project: Apache Airflow > Issue Type: Bug > Components: cli > Affects Versions: 1.10.6 > Reporter: Kamil Bregula > Priority: Major > > Hello > Currently, CLI tests are not ordered, which makes it difficult to find the > correct test, and also makes it difficult to introduce further improvements. > Currently CLI tests are in the following classes: > * tests.cli.test_cli.TestCLI > * tests.core.TestCli > I would like to take action to group the tests according to the base command, > which creates the following classes: > * tests.cli.test_cli.TestConnections > * tests.cli.test_cli.TestDags > * tests.cli.test_cli.TestDb > * tests.cli.test_cli.TestFlower > * tests.cli.test_cli.TestKerberos > * tests.cli.test_cli.TestPools > * tests.cli.test_cli.TestRoles > * tests.cli.test_cli.TestRotateFernetKey > * tests.cli.test_cli.TestScheduler > * tests.cli.test_cli.TestServeLogs > * tests.cli.test_cli.TestSyncPerm > * tests.cli.test_cli.TestTasks > * tests.cli.test_cli.TestUsers > * tests.cli.test_cli.TestVariables > * tests.cli.test_cli.TestVersion > * tests.cli.test_cli.TestWebserver > * tests.cli.test_cli.TestWorker > The change will make it easier to make subsequent changes for this component: > In particular, split the component cli.py file into separate modules, and > then introduce lazy module loading. Currently, all modules are loaded with > all dependencies every time. This process is time consuming. -- This message was sent by Atlassian Jira (v8.3.4#803005)