/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_crash.py

  • Committer: Martin
  • Date: 2019-06-16 01:03:51 UTC
  • mto: This revision was merged to the branch mainline in revision 7340.
  • Revision ID: gzlist@googlemail.com-20190616010351-uz89ydnwdoal4ve4
Split non-ini config methods to bedding

Functions that determine filesystem paths to use for config and default
username are now outside of the main (large) config module.

Also move cache_dir function from osutils and normalise logic.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
import breezy
23
23
from .. import (
24
 
    config,
 
24
    bedding,
25
25
    crash,
26
26
    osutils,
27
27
    plugin,
41
41
        crash_dir = osutils.joinpath((self.test_base_dir, 'crash'))
42
42
        os.mkdir(crash_dir)
43
43
        self.overrideEnv('APPORT_CRASH_DIR', crash_dir)
44
 
        self.assertEqual(crash_dir, config.crash_dir())
 
44
        self.assertEqual(crash_dir, bedding.crash_dir())
45
45
 
46
46
        self.overrideAttr(
47
47
            breezy.get_global_state(),