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

Method test_status_rm

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

Source from the content-addressed store, hash-verified

466 self.assertFalse(st.modified)
467
468 def test_status_rm(self):
469 os.remove(TRACKED_FP)
470 st = self.curr_b.status_file(TRACKED_FP)
471 self.assertEqual(core.GL_STATUS_TRACKED, st.type)
472 self.assertTrue(st.modified)
473 self.assertTrue(st.exists_at_head)
474 self.assertFalse(st.exists_in_wd)
475
476 utils_lib.write_file(TRACKED_FP, contents=TRACKED_FP_CONTENTS_2)
477 st = self.curr_b.status_file(TRACKED_FP)
478 self.assertEqual(core.GL_STATUS_TRACKED, st.type)
479 self.assertFalse(st.modified)
480 self.assertTrue(st.exists_at_head)
481 self.assertTrue(st.exists_in_wd)
482
483 def test_status_track_rm(self):
484 self.curr_b.track_file(UNTRACKED_FP)

Callers

nothing calls this directly

Calls 1

status_fileMethod · 0.80

Tested by

no test coverage detected