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

Method test_status_ignore_tracked

gitless/tests/test_core.py:541–545  ·  view source on GitHub ↗

Assert that ignoring a tracked file has no effect.

(self)

Source from the content-addressed store, hash-verified

539 self.assertTrue(st.exists_at_head)
540
541 def test_status_ignore_tracked(self):
542 """Assert that ignoring a tracked file has no effect."""
543 utils_lib.append_to_file('.gitignore', contents='\n' + TRACKED_FP + '\n')
544 st = self.curr_b.status_file(TRACKED_FP)
545 self.__assert_type(TRACKED_FP, core.GL_STATUS_TRACKED, st.type)
546
547 def test_status_ignore_untracked(self):
548 """Assert that ignoring a untracked file makes it ignored."""

Callers

nothing calls this directly

Calls 2

__assert_typeMethod · 0.95
status_fileMethod · 0.80

Tested by

no test coverage detected