From 5dac4e3af6fa39d6d729a7ee599c3da775fff7b7 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 15 Jun 2016 18:42:25 +0300 Subject: [PATCH] Add test for `init --ide eclipse` --- tests/commands/test_init.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/commands/test_init.py b/tests/commands/test_init.py index 93b47053..5e136f47 100644 --- a/tests/commands/test_init.py +++ b/tests/commands/test_init.py @@ -42,6 +42,14 @@ def test_init_ext_folder(platformio_setup, clirunner, validate_cliresult): validate_pioproject(join(getcwd(), ext_folder_name)) +def test_init_ide_eclipse(platformio_setup, clirunner, validate_cliresult): + with clirunner.isolated_filesystem(): + result = clirunner.invoke(cli, ["-b", "uno", "--ide", "eclipse"]) + validate_cliresult(result) + validate_pioproject(getcwd()) + assert all([isfile(f) for f in (".cproject", ".project")]) + + def test_init_special_board(platformio_setup, clirunner, validate_cliresult): with clirunner.isolated_filesystem(): result = clirunner.invoke(cli, ["-b", "uno"])