/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/blackbox/test_logformats.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:
22
22
import os
23
23
 
24
24
from breezy import (
25
 
    config,
 
25
    bedding,
26
26
    tests,
27
27
    workingtree,
28
28
    )
34
34
        super(TestLogFormats, self).setUp()
35
35
 
36
36
        # Create a config file with some useful variables
37
 
        conf_path = config.config_filename()
 
37
        conf_path = bedding.config_path()
38
38
        if os.path.isfile(conf_path):
39
39
            # Something is wrong in environment,
40
40
            # we risk overwriting users config
41
41
            self.fail("%s exists" % conf_path)
42
42
 
43
 
        config.ensure_config_dir_exists()
 
43
        bedding.ensure_config_dir_exists()
44
44
        f = open(conf_path, 'wb')
45
45
        try:
46
46
            f.write(b"""[DEFAULT]