Did I find the right examples for you? yes no

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

src/p/y/python-veracity-0.0.11/veracity/tracking.py   python-veracity(Download)
from veracity import vv
from veracity import vscript
from veracity.objects import Repository, BuildRequest
 
 
    """
    try:
        repo = Repository(name)
        repo.pull()
        if initialize:

src/p/y/python-veracity-0.0.11/veracity/__init__.py   python-veracity(Download)
    from veracity.vv import VeracityException
    from veracity.vv import repos, run as run_vv
    from veracity.objects import Repository, WorkingCopy
    from veracity.objects import Item, Changeset, Branch, Stamp, Tag, User
    from veracity.objects import BuildRequest

src/p/y/python-veracity-0.0.11/veracity/test/test_objects.py   python-veracity(Download)
from veracity.vscript import VeracityScriptException
from veracity.objects import identify, keywords
from veracity.objects import Repository, WorkingCopy, Item
from veracity.objects import Changeset, Branch, Tag, Stamp, User
from veracity.objects import BuildRequest
    def test_init_existing(self):
        """Verify a repository can be created from an existing repository."""
        repo = Repository(TEST_REPO.name)
        log(repo)
        self.assertEqual(TEST_REPO, repo)
    def test_init_clone(self):
        """Verify a repository can be created as a clone."""
        with Repository(TEMP_REPO.name + '-clone', remote=TEMP_REPO) as repo:
            log(repo)
 
    def test_init_new(self):
        """Verify a new repository can be created."""
        with Repository(TEMP_REPO.name + '-new', create=True) as repo:
            log(repo)
            self.assertEqual(TEMP_REPO.name + '-new', str(repo))
    def test_delete(self):
        """Verify a repository can not be used after it is deleted."""
        repo2 = Repository(TEMP_REPO.name + '-clone', remote=TEMP_REPO.name)
        with Repository(TEMP_REPO.name + '-clone', remote=TEMP_REPO.name) as repo:
            log(repo, repo2)

src/p/y/python-veracity-0.0.11/veracity/test/__init__.py   python-veracity(Download)
# Set the integration test repository if enabled and created
if settings.TEST_INTEGRATION and TEST_REPO_NAME in vv.repos():
    TEST_REPO = objects.Repository(TEST_REPO_NAME)
    TEST_REPO.user = 'testuser'
else: