code stringlengths 3 6.57k |
|---|
mock.Mock() |
mock.Mock(return_value=ci) |
range(100) |
range(100) |
refresh_commit_info(oid, seen, lazy=False) |
datetime(2010, 10, 8, 15, 32, 48, 0) |
m.insert() |
getattr(oid, '_id', str(oid) |
_id(oid) |
_id(oid) |
self.repo.refresh() |
ThreadLocalORMSession.flush_all() |
M.Notification.query.find() |
all() |
assert_in('By Test Committer on 10/08/2010 15:32', n.text) |
assert_in('http://localhost/ci/foo99/', n.text) |
count() |
test_refresh_private(self) |
mock.Mock() |
mock.Mock(return_value=ci) |
range(100) |
self.repo.refresh() |
test_push_upstream_context(self) |
self.repo.init_as_clone('srcpath', '/p/test/svn/', '/p/test/svn/') |
ming.base.Object(_id=None) |
self.repo.push_upstream_context() |
test_pending_upstream_merges(self) |
self.repo.init_as_clone('srcpath', '/p/test/svn/', '/p/test/svn/') |
ming.base.Object(_id=None) |
self.repo.pending_upstream_merges() |
TestRepoObject(_TestWithRepoAndCommit) |
test_upsert(self) |
M.repository.Tree.upsert('foo1') |
M.repository.Tree.upsert('foo1') |
test_artifact_methods(self) |
self.ci.index_id() |
self.ci.primary() |
self.ci.primary() |
TestCommit(_TestWithRepo) |
setUp(self) |
super(TestCommit, self) |
setUp() |
M.RepositoryImplementation() |
test_upsert(self) |
M.repository.Commit.upsert('foo') |
M.repository.Commit.upsert('foo') |
M.User.by_username('test-admin') |
u.url() |
u.url() |
self.ci.shorthand_id() |
self.ci.url() |
test_get_path(self) |
self.ci.get_path('a/a/a') |
isinstance(b, M.repository.Blob) |
self.ci.get_path('a/a') |
isinstance(x, M.repository.Tree) |
_unique_blobs(self) |
counter() |
defaultdict(counter) |
BytesIO(str(blobs[blob.path() |
test_diffs_file_renames(self) |
open_blob(blob) |
BytesIO(blobs.get(blob.path() |
mock.Mock(return_value=self.ci) |
self._make_log(ci) |
assert_equal(ci.diffs.added, ['b', 'b/a', 'b/a/a', 'b/a/b', 'b/b']) |
assert_equal(ci.diffs.removed, ['a', 'a/a', 'a/a/a', 'a/a/b', 'a/b']) |
self._make_log(ci) |
assert_equal(ci.diffs.added, ['b/a/z', 'b/c']) |
assert_equal(ci.diffs.changed, []) |
assert_equal(ci.diffs.removed, ['/b/a/b', 'b/b']) |
assert_equal(len(ci.diffs.copied) |
assert_equal(ci.diffs.copied[1]['old'], 'b/a/b') |
assert_equal(ci.diffs.copied[1]['new'], 'b/c') |
assert_equal(ci.diffs.copied[1]['ratio'], 1) |
assert_equal(ci.diffs.copied[1]['diff'], '') |
assert_equal(ci.diffs.copied[0]['old'], 'b/b') |
assert_equal(ci.diffs.copied[0]['new'], 'b/a/z') |
test_context(self) |
self.ci.context() |
TestRename(unittest.TestCase) |
setUp(self) |
setup_basic_test() |
self.setup_with_tools() |
setup_with_tools(self) |
setup_global_objects() |
h.set_context('test', 'src', neighborhood='Projects') |
self.repo.refresh() |
self.repo.commit('HEAD') |
ThreadLocalORMSession.flush_all() |
ThreadLocalORMSession.close_all() |
test_log_file_with_rename(self) |
list(self.repo.log(path='/dir/b.txt', id_only=False, limit=1) |
assert_equal(entry['id'], 3) |
assert_equal(entry['rename_details']['path'], '/dir/a.txt') |
self.repo.url_for_commit(2) |
test_check_changed_path(self) |
TestDirectRepoAccess(object) |
setUp(self) |
setup_basic_test() |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.