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

Method __assert_commit

gitless/tests/test_e2e.py:229–238  ·  view source on GitHub ↗
(self, *expected_committed)

Source from the content-addressed store, hash-verified

227 self.__assert_commit('dir/f')
228
229 def __assert_commit(self, *expected_committed):
230 h = utils.stdout(gl.history(v=True))
231 for fp in expected_committed:
232 if fp not in h:
233 self.fail('{0} was apparently not committed!'.format(fp))
234 expected_not_committed = [
235 fp for fp in self.FPS if fp not in expected_committed]
236 for fp in expected_not_committed:
237 if fp in h:
238 self.fail('{0} was apparently committed!'.format(fp))
239
240
241class TestStatus(TestEndToEnd):

Callers 9

test_commitMethod · 0.95
test_commit_relativeMethod · 0.95
test_commit_onlyMethod · 0.95
test_commit_includeMethod · 0.95
test_commit_dirMethod · 0.95

Calls 1

historyMethod · 0.45

Tested by

no test coverage detected