MCPcopy Create free account
hub / github.com/gitless-vcs/gitless / test_commit_no_files

Method test_commit_no_files

gitless/tests/test_e2e.py:213–221  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

211 self.__assert_commit(self.UNTRACKED_FP, self.DIR_TRACKED_FP)
212
213 def test_commit_no_files(self):
214 self.assertRaises(
215 ErrorReturnCode, gl.commit, '--exclude',
216 self.TRACKED_FP, self.DIR_TRACKED_FP, m='msg')
217 self.assertRaises(ErrorReturnCode, gl.commit, 'non-existent', m='msg')
218 self.assertRaises(
219 ErrorReturnCode, gl.commit, m='msg', exclude='non-existent')
220 self.assertRaises(
221 ErrorReturnCode, gl.commit, m='msg', include='non-existent')
222
223 def test_commit_dir(self):
224 fp = 'dir/f'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected