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

Method test_status_track_rm

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

Source from the content-addressed store, hash-verified

481 self.assertTrue(st.exists_in_wd)
482
483 def test_status_track_rm(self):
484 self.curr_b.track_file(UNTRACKED_FP)
485 st = self.curr_b.status_file(UNTRACKED_FP)
486 self.assertEqual(core.GL_STATUS_TRACKED, st.type)
487 self.assertTrue(st.modified)
488
489 os.remove(UNTRACKED_FP)
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)

Callers

nothing calls this directly

Calls 2

track_fileMethod · 0.80
status_fileMethod · 0.80

Tested by

no test coverage detected