MCPcopy
hub / github.com/gitless-vcs/gitless / setUp

Method setUp

gitless/tests/test_core.py:754–768  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

752 """Base class for branch tests."""
753
754 def setUp(self):
755 super(TestBranch, self).setUp()
756
757 # Build up an interesting mock repo.
758 utils_lib.write_file(TRACKED_FP, contents=TRACKED_FP_CONTENTS_1)
759 git.add(TRACKED_FP)
760 git.commit(TRACKED_FP, m='1')
761 utils_lib.write_file(TRACKED_FP, contents=TRACKED_FP_CONTENTS_2)
762 git.commit(TRACKED_FP, m='2')
763 utils_lib.write_file(UNTRACKED_FP, contents=UNTRACKED_FP_CONTENTS)
764 utils_lib.write_file('.gitignore', contents='{0}'.format(IGNORED_FP))
765 utils_lib.write_file(IGNORED_FP)
766 git.branch(BRANCH)
767
768 self.curr_b = self.repo.current_branch
769
770
771class TestBranchCreate(TestBranch):

Callers

nothing calls this directly

Calls 1

setUpMethod · 0.45

Tested by

no test coverage detected