/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-06-15 18:10:11 UTC
  • mfrom: (6060.9.10 cachedir)
  • Revision ID: breezy.the.bot@gmail.com-20190615181011-h2z3rb4s9t1af8mb
Add osutils.cache_dir function and use it where we create Breezy-specific caches.

Merged from https://code.launchpad.net/~jelmer/brz/cachedir/+merge/362708

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
 
78
78
    def test_get_cache_directory(self):
79
79
        # get_cache_directory returns the path to a directory inside the
80
 
        # Bazaar configuration directory.
 
80
        # Breezy cache directory.
81
81
        from . import lp_api
82
 
        expected_path = osutils.pathjoin(config.config_dir(), 'launchpad')
 
82
        expected_path = osutils.pathjoin(osutils.cache_dir(), 'launchpad')
83
83
        self.assertEqual(expected_path, lp_api.get_cache_directory())