/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/git/tests/test_remote.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-06-11 12:46:45 UTC
  • mfrom: (7511.1.1 actions-no-fork)
  • Revision ID: breezy.the.bot@gmail.com-20200611124645-4lx66gps99i0hmzh
Avoid using fork when running the testsuite in github actions.

Merged from https://code.launchpad.net/~jelmer/brz/actions-no-fork/+merge/385565

Show diffs side-by-side

added added

removed removed

Lines of Context:
143
143
""")
144
144
        self.assertIsInstance(e, NotBranchError)
145
145
 
146
 
    def test_invalid_git_error(self):
147
 
        self.assertEqual(
148
 
            PermissionDenied(
149
 
                'url',
150
 
                'GitLab: You are not allowed to push code to protected '
151
 
                'branches on this project.'),
152
 
            parse_git_error(
153
 
                'url',
154
 
                RemoteGitError(
155
 
                    'GitLab: You are not allowed to push code to '
156
 
                    'protected branches on this project.')))
157
 
 
158
146
 
159
147
class ParseHangupTests(TestCase):
160
148
 
184
172
        self.assertEqual(
185
173
            RemoteGitError('foo bar'), parse_git_hangup('http://', HangupException(
186
174
                [b'=======', b'foo bar', b'======'])))
187
 
        self.assertEqual(
188
 
            RemoteGitError('foo bar'), parse_git_hangup('http://', HangupException(
189
 
                [b'remote: =======', b'remote: foo bar', b'remote: ======'])))
190
175
 
191
176
    def test_permission_denied(self):
192
177
        self.assertEqual(