MCPcopy Index your code
hub / github.com/saltstack/salt / test_checkout_no_rev

Method test_checkout_no_rev

tests/integration/modules/test_git.py:275–289  ·  view source on GitHub ↗

Test git.checkout without a rev, both with -b in opts and without

(self)

Source from the content-addressed store, hash-verified

273
274 @pytest.mark.slow_test
275 def test_checkout_no_rev(self):
276 """
277 Test git.checkout without a rev, both with -b in opts and without
278 """
279 new_branch = "iamanothernewbranch"
280 self.assertEqual(
281 self.run_function(
282 "git.checkout", [self.repo], rev=None, opts="-b " + new_branch
283 ),
284 "Switched to a new branch '" + new_branch + "'",
285 )
286 self.assertTrue(
287 "'rev' argument is required unless -b or -B in opts"
288 in self.run_function("git.checkout", [self.repo])
289 )
290
291 @pytest.mark.slow_test
292 def test_clone(self):

Callers

nothing calls this directly

Calls 1

run_functionMethod · 0.95

Tested by

no test coverage detected