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

Method test_basic_diff_relative

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

Source from the content-addressed store, hash-verified

377 self.assertEqual(out1, out2)
378
379 def test_basic_diff_relative(self):
380 utils.write_file(self.TRACKED_FP, contents='contents_tracked')
381 utils.write_file(self.DIR_TRACKED_FP, contents='contents_dir_tracked')
382 os.chdir(self.DIR)
383 out1 = utils.stdout(gl.diff())
384 if '+contents_tracked' not in out1:
385 self.fail()
386 if '+contents_dir_tracked' not in out1:
387 self.fail()
388 rel_dir_tracked_fp = os.path.relpath(self.DIR_TRACKED_FP, self.DIR)
389 out2 = utils.stdout(gl.diff(rel_dir_tracked_fp))
390 if '+contents_dir_tracked' not in out2:
391 self.fail()
392
393 def test_diff_dir(self):
394 fp = 'dir/dir/f'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected