Improved tests #129

This commit is contained in:
2022-12-01 17:00:17 +01:00
parent d8f7e03815
commit e8ae635c88
13 changed files with 47 additions and 16 deletions

View File

@@ -10,7 +10,10 @@ from unittests_shared.cli_commands import CLICommands
class NewTestCase(unittest.TestCase):
def setUp(self):
os.chdir(os.path.abspath(PLAYGROUND_PATH))
if not os.path.exists(PLAYGROUND_PATH):
os.makedirs(PLAYGROUND_PATH)
os.chdir(PLAYGROUND_PATH)
def _test_project(self, project_type: str, name: str, *args, test_venv=False, without_ws=False):
CLICommands.new(project_type, name, *args)