/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/launchpad/test_lp_api.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:
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
 
18
 
from ... import config, errors, osutils
 
18
from ... import (
 
19
    bedding,
 
20
    errors,
 
21
    osutils,
 
22
    )
19
23
from ...tests import (
20
24
    TestCase,
21
25
    TestCaseWithTransport,
79
83
        # get_cache_directory returns the path to a directory inside the
80
84
        # Breezy cache directory.
81
85
        from . import lp_api
82
 
        expected_path = osutils.pathjoin(osutils.cache_dir(), 'launchpad')
 
86
        expected_path = osutils.pathjoin(bedding.cache_dir(), 'launchpad')
83
87
        self.assertEqual(expected_path, lp_api.get_cache_directory())