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

Method test_basic_diff

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

Source from the content-addressed store, hash-verified

367 self.fail()
368
369 def test_basic_diff(self):
370 utils.write_file(self.TRACKED_FP, contents='contents')
371 out1 = utils.stdout(gl.diff())
372 if '+contents' not in out1:
373 self.fail()
374 out2 = utils.stdout(gl.diff(self.TRACKED_FP))
375 if '+contents' not in out2:
376 self.fail()
377 self.assertEqual(out1, out2)
378
379 def test_basic_diff_relative(self):
380 utils.write_file(self.TRACKED_FP, contents='contents_tracked')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected