mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
add test case
This commit is contained in:
parent
243a0475f9
commit
8c9b0b3a2a
1 changed files with 9 additions and 0 deletions
|
@ -696,3 +696,12 @@ class CheckupdatesTest(unittest.TestCase):
|
||||||
push.assert_called_once()
|
push.assert_called_once()
|
||||||
sys_exit.assert_called_once()
|
sys_exit.assert_called_once()
|
||||||
self.assertIn(appid, git_repo.heads)
|
self.assertIn(appid, git_repo.heads)
|
||||||
|
|
||||||
|
def test_push_commits_invalid_branch_name(self):
|
||||||
|
git_repo, origin_repo, upstream_repo = self._get_test_git_repos()
|
||||||
|
for remote in git_repo.remotes:
|
||||||
|
remote.push(git_repo.active_branch)
|
||||||
|
self.assertEqual(git_repo.head, upstream_repo.head)
|
||||||
|
self.assertEqual(origin_repo.head, upstream_repo.head)
|
||||||
|
# pretend that checkupdates ran but didn't create any new commits
|
||||||
|
fdroidserver.checkupdates.push_commits('')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue