def test_init_small_project(self): init.setup(self.subparser) args = self.parser.parse_args(['init', '-dir', 'test_workspace']) result = init.run(args) assert result == 0 # Should create 2 files assert os.path.isfile('projects.yaml') assert os.path.isfile('project.yaml')
def test_init_empty_project(self): init.setup(self.subparser) args = self.parser.parse_args(['init']) result = init.run(args) assert result == 0 # Should create 2 files assert os.path.isfile('projects.yaml') assert os.path.isfile('project.yaml')