/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/tests/test_commit.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2017-07-04 21:44:36 UTC
  • mfrom: (6728.1.3 move-gpg)
  • Revision ID: breezy.the.bot@gmail.com-20170704214436-evf0ycv5n7cfqxq9
Switch to using python-gpg (part of gpgme) rather than deprecated python-gpgme.

Merged from https://code.launchpad.net/~jelmer/brz/gpg/+merge/326815

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
from ..errors import (
34
34
    PointlessCommit,
35
35
    BzrError,
36
 
    SigningFailed,
37
36
    LockContention,
38
37
    )
39
38
from . import (
53
52
 
54
53
    def __init__(self):
55
54
        super(MustSignConfig, self).__init__('''
56
 
gpg_signing_command=cat -
57
55
create_signatures=always
58
56
''')
59
57
 
431
429
            # monkey patch gpg signing mechanism
432
430
            breezy.gpg.GPGStrategy = breezy.gpg.LoopbackGPGStrategy
433
431
            conf = config.MemoryStack('''
434
 
gpg_signing_command=cat -
435
432
create_signatures=always
436
433
''')
437
434
            commit.Commit(config_stack=conf).commit(
457
454
            # monkey patch gpg signing mechanism
458
455
            breezy.gpg.GPGStrategy = breezy.gpg.DisabledGPGStrategy
459
456
            conf = config.MemoryStack('''
460
 
gpg_signing_command=cat -
461
457
create_signatures=always
462
458
''')
463
 
            self.assertRaises(SigningFailed,
 
459
            self.assertRaises(breezy.gpg.SigningFailed,
464
460
                              commit.Commit(config_stack=conf).commit,
465
461
                              message="base",
466
462
                              allow_pointless=True,