From e0da77fd4b661f2501fc8e3494cf81b80fefbc33 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Thu, 26 May 2022 22:24:19 +0200 Subject: [PATCH] Added new test condition for cpl new --- unittests/unittests_cli/new_test_case.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/unittests/unittests_cli/new_test_case.py b/unittests/unittests_cli/new_test_case.py index 53072308..1caa725e 100644 --- a/unittests/unittests_cli/new_test_case.py +++ b/unittests/unittests_cli/new_test_case.py @@ -21,6 +21,11 @@ class NewTestCase(unittest.TestCase): project_path = os.path.abspath(os.path.join(PLAYGROUND_PATH, name, 'src', String.convert_to_snake_case(name))) self.assertTrue(os.path.exists(project_path)) self.assertTrue(os.path.join(project_path, f'{name}.json')) + self.assertTrue(os.path.join(project_path, f'application.py')) + self.assertTrue(os.path.join(project_path, f'main.py')) + self.assertTrue(os.path.join(project_path, f'startup.py')) + if project_type == 'unittest': + self.assertTrue(os.path.join(project_path, f'test_case_test_case.py')) def _test_sub_project(self, project_type: str, name: str, workspace_name: str, *args): os.chdir(os.path.abspath(os.path.join(os.getcwd(), workspace_name)))