MCPcopy Index your code
hub / github.com/gitless-vcs/gitless / __assert_untrack_tracked

Method __assert_untrack_tracked

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

Source from the content-addressed store, hash-verified

263class TestFileUntrack(TestFile):
264
265 def __assert_untrack_tracked(self, *fps):
266 root = self.repo.root
267 for fp in fps:
268 fp = os.path.relpath(fp, root)
269 self.curr_b.untrack_file(fp)
270 st = self.curr_b.status_file(fp)
271 self.assertEqual(
272 core.GL_STATUS_UNTRACKED, st.type,
273 'Untrack of fp "{0}" failed: expected status.type={1}, got '
274 'status.type={2}'.format(fp, core.GL_STATUS_UNTRACKED, st.type))
275
276 @assert_contents_unchanged(
277 TRACKED_FP, TRACKED_FP_WITH_SPACE,

Callers 2

test_untrack_trackedMethod · 0.95

Calls 2

untrack_fileMethod · 0.80
status_fileMethod · 0.80

Tested by

no test coverage detected