[ https://issues.apache.org/jira/browse/AIRFLOW-5893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16973171#comment-16973171 ]
ASF subversion and git services commented on AIRFLOW-5893: ---------------------------------------------------------- Commit 8b537c57f9278b9330ab1a5cb4ccf0c35ee68ee9 in airflow's branch refs/heads/master from Kamil Breguła [ https://gitbox.apache.org/repos/asf?p=airflow.git;h=8b537c5 ] [AIRFLOW-5917][part of AIRFLOW-5893] Group tests for the Webserver command (#6566) > 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)