Test git.checkout without a rev, both with -b in opts and without
(self)
| 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): |
nothing calls this directly
no test coverage detected