Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(3)  |  Derive(0)  |  Import(5)

src/g/i/git-buildpackage-rpm-HEAD/tests/component/deb/test_import_dsc.py   git-buildpackage-rpm(Download)
import os
 
from tests.component import (ComponentTestBase,
                             ComponentTestGitRepository)
from tests.component.deb import DEB_TEST_DATA_DIR
        dsc = _dsc('0.4.14')
        assert import_dsc(['arg0', dsc]) == 0
        repo = ComponentTestGitRepository('git-buildpackage')
        self._check_repo_state(repo, 'master', ['master'])
        assert len(repo.get_commits()) == 1
                           '--upstream-branch=upstream',
                           dsc]) == 0
        repo = ComponentTestGitRepository('hello-debhelper')
        os.chdir('hello-debhelper')
        assert len(repo.get_commits()) == 2

src/g/i/git-buildpackage-HEAD/tests/component/deb/test_import_dsc.py   git-buildpackage(Download)
import os
 
from tests.component import (ComponentTestBase,
                             ComponentTestGitRepository)
from tests.component.deb import DEB_TEST_DATA_DIR
        dsc = _dsc('0.4.14')
        assert import_dsc(['arg0', dsc]) == 0
        repo = ComponentTestGitRepository('git-buildpackage')
        self._check_repo_state(repo, 'master', ['master'])
        assert len(repo.get_commits()) == 1

src/g/i/git-buildpackage-HEAD/tests/component/deb/__init__.py   git-buildpackage(Download)
import os
 
from tests.component import ComponentTestGitRepository
 
DEB_TEST_SUBMODULE = os.path.join('tests', 'component', 'deb', 'data')

src/g/i/git-buildpackage-rpm-HEAD/tests/component/rpm/__init__.py   git-buildpackage-rpm(Download)
from gbp.git import GitRepository, GitRepositoryError
 
from tests.component import ComponentTestBase, ComponentTestGitRepository
 
RPM_TEST_DATA_SUBMODULE = os.path.join('tests', 'component', 'rpm', 'data')

src/g/i/git-buildpackage-rpm-HEAD/tests/component/deb/__init__.py   git-buildpackage-rpm(Download)
import os
 
from tests.component import ComponentTestGitRepository
 
DEB_TEST_SUBMODULE = os.path.join('tests', 'component', 'deb', 'data')