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

Method __assert_track_untracked

gitless/tests/test_core.py:177–186  ·  view source on GitHub ↗
(self, *fps)

Source from the content-addressed store, hash-verified

175class TestFileTrack(TestFile):
176
177 def __assert_track_untracked(self, *fps):
178 root = self.repo.root
179 for fp in fps:
180 fp = os.path.relpath(fp, root)
181 self.curr_b.track_file(fp)
182 st = self.curr_b.status_file(fp)
183 self.assertEqual(
184 core.GL_STATUS_TRACKED, st.type,
185 'Track of fp "{0}" failed: expected status.type={1}, got '
186 'status.type={2}'.format(fp, core.GL_STATUS_TRACKED, st.type))
187
188 @assert_contents_unchanged(
189 UNTRACKED_FP, UNTRACKED_FP_WITH_SPACE,

Callers 2

test_track_untrackedMethod · 0.95

Calls 2

track_fileMethod · 0.80
status_fileMethod · 0.80

Tested by

no test coverage detected