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

Class TestNotInRepo

gitless/tests/test_e2e.py:52–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51
52class TestNotInRepo(utils.TestBase):
53
54 def setUp(self):
55 super(TestNotInRepo, self).setUp('gl-e2e-test')
56
57 def test_not_in_repo(self):
58 def assert_not_in_repo(*cmds):
59 for cmd in cmds:
60 self.assertRaisesRegexp(
61 ErrorReturnCode, 'not in a Gitless\'s repository', cmd)
62
63 assert_not_in_repo(
64 gl.status, gl.diff, gl.commit, gl.branch, gl.merge, gl.fuse, gl.remote,
65 gl.publish, gl.history)
66
67
68class TestBasic(TestEndToEnd):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected