/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/plugins/upload/tests/test_upload.py

  • Committer: Breezy landing bot
  • Author(s): Martin
  • Date: 2019-06-16 01:52:23 UTC
  • mfrom: (7336.2.1 split_config_env)
  • Revision ID: breezy.the.bot@gmail.com-20190616015223-0kkno5fepi7tmbqy
Split non-ini config methods to bedding

Merged from https://code.launchpad.net/~gz/brz/split_config_env/+merge/368863

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
 
21
21
from .... import (
22
 
    config,
 
22
    bedding,
23
23
    controldir,
24
24
    errors,
25
25
    osutils,
734
734
        self.assertEqual(None, conf.get('upload_location'))
735
735
 
736
736
    def test_get_push_location_exact(self):
737
 
        config.ensure_config_dir_exists()
738
 
        fn = config.locations_config_filename()
 
737
        bedding.ensure_config_dir_exists()
 
738
        fn = bedding.locations_config_path()
739
739
        b = self.get_branch()
740
740
        with open(fn, 'wt') as f:
741
741
            f.write(("[%s]\n" "upload_location=foo\n" % b.base.rstrip("/")))