Exemplo n.º 1
0
    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')
Exemplo n.º 2
0
    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')
Exemplo n.º 3
0
    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')
Exemplo n.º 4
0
    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')