Ejemplo n.º 1
0
    def test_fetch_repo_pull(self, fetch_repo_parameters, root_directory):
        """ Test whether a pull request is issued for an existing repo """

        initiator, url = fetch_repo_parameters
        root = root_directory

        assert fetch_repo(root, sources_path, initiator, url, build_path) == 'pull'
    def test_fetch_repo_pull(self, fetch_repo_parameters, root_directory):
        initiator, url = fetch_repo_parameters

        root = root_directory

        assert fetch_repo(root, sources_path, initiator, url,
                          build_path) == 'pull'
    def test_fetch_repo_clone(self, fetch_repo_parameters, root_directory):
        initiator, url = fetch_repo_parameters

        root = root_directory
        root.makedir(sources_path)

        assert fetch_repo(root, sources_path, initiator, url, build_path) == 'clone'

        assert initiator in root.listdir(ospath.join(build_path, sources_path), dirs_only=True)
Ejemplo n.º 4
0
    def test_fetch_repo_clone(self, fetch_repo_parameters, root_directory):
        """ Test whether a clone request is issue for a non-existing repo """

        initiator, url = fetch_repo_parameters

        root = root_directory
        root.makedir(sources_path)

        assert fetch_repo(root, sources_path, initiator, url, build_path) == 'clone'

        assert initiator in root.listdir(ospath.join(build_path, sources_path), dirs_only=True)
    def test_fetch_repo_clone(self, fetch_repo_parameters, root_directory):
        initiator, url = fetch_repo_parameters

        root = root_directory
        root.makedir(sources_path)

        assert fetch_repo(root, sources_path, initiator, url,
                          build_path) == 'clone'

        assert initiator in root.listdir(ospath.join(build_path, sources_path),
                                         dirs_only=True)
    def test_fetch_repo_pull(self, fetch_repo_parameters, root_directory):
        initiator, url = fetch_repo_parameters

        root = root_directory

        assert fetch_repo(root, sources_path, initiator, url, build_path) == 'pull'