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

Method test_branch

tests/integration/modules/test_git.py:242–255  ·  view source on GitHub ↗

Test creating, renaming, and deleting a branch using git.branch

(self)

Source from the content-addressed store, hash-verified

240
241 @pytest.mark.slow_test
242 def test_branch(self):
243 """
244 Test creating, renaming, and deleting a branch using git.branch
245 """
246 renamed_branch = "ihavebeenrenamed"
247 self.assertTrue(self.run_function("git.branch", [self.repo, self.branches[1]]))
248 self.assertTrue(
249 self.run_function(
250 "git.branch", [self.repo, renamed_branch], opts="-m " + self.branches[1]
251 )
252 )
253 self.assertTrue(
254 self.run_function("git.branch", [self.repo, renamed_branch], opts="-D")
255 )
256
257 @pytest.mark.slow_test
258 def test_checkout(self):

Callers

nothing calls this directly

Calls 1

run_functionMethod · 0.95

Tested by

no test coverage detected