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

Method test_status_track_untrack

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

Source from the content-addressed store, hash-verified

490 self.assertRaises(KeyError, self.curr_b.status_file, UNTRACKED_FP)
491
492 def test_status_track_untrack(self):
493 self.curr_b.track_file(UNTRACKED_FP)
494 st = self.curr_b.status_file(UNTRACKED_FP)
495 self.assertEqual(core.GL_STATUS_TRACKED, st.type)
496 self.assertTrue(st.modified)
497
498 self.curr_b.untrack_file(UNTRACKED_FP)
499 st = self.curr_b.status_file(UNTRACKED_FP)
500 self.assertEqual(core.GL_STATUS_UNTRACKED, st.type)
501 self.assertTrue(st.modified)
502
503 def test_status_unignore(self):
504 utils_lib.write_file('.gitignore', contents='')

Callers

nothing calls this directly

Calls 3

track_fileMethod · 0.80
status_fileMethod · 0.80
untrack_fileMethod · 0.80

Tested by

no test coverage detected