You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by bo...@apache.org on 2017/04/04 06:37:16 UTC

incubator-airflow git commit: [AIRFLOW-1051] Add a test for resetdb to CliTests

Repository: incubator-airflow
Updated Branches:
  refs/heads/master a9b20a04b -> 15aee05dd


[AIRFLOW-1051] Add a test for resetdb to CliTests

CliTests lacks a test for resetdb command for now.
It should be added.

Closes #2198 from sekikn/AIRFLOW-1051


Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/15aee05d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/15aee05d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/15aee05d

Branch: refs/heads/master
Commit: 15aee05dd7104716b22ea7b01b220f9eaea3a72a
Parents: a9b20a0
Author: Kengo Seki <se...@nttdata.co.jp>
Authored: Tue Apr 4 08:37:08 2017 +0200
Committer: Bolke de Bruin <bo...@xs4all.nl>
Committed: Tue Apr 4 08:37:08 2017 +0200

----------------------------------------------------------------------
 tests/core.py | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/15aee05d/tests/core.py
----------------------------------------------------------------------
diff --git a/tests/core.py b/tests/core.py
index 7da08e1..8b3d1b8 100644
--- a/tests/core.py
+++ b/tests/core.py
@@ -1089,6 +1089,9 @@ class CliTests(unittest.TestCase):
     def test_cli_initdb(self):
         cli.initdb(self.parser.parse_args(['initdb']))
 
+    def test_cli_resetdb(self):
+        cli.resetdb(self.parser.parse_args(['resetdb', '--yes']))
+
     def test_cli_connections_list(self):
         with mock.patch('sys.stdout',
                         new_callable=six.StringIO) as mock_stdout: