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

  • Committer: Jelmer Vernooij
  • Date: 2019-06-16 02:23:42 UTC
  • mfrom: (7340 work)
  • mto: This revision was merged to the branch mainline in revision 7350.
  • Revision ID: jelmer@jelmer.uk-20190616022342-ihxzayq04x5culzd
merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
"""Tests for handling of ignore files"""
18
18
 
19
19
from .. import (
20
 
    config,
 
20
    bedding,
21
21
    ignores,
22
22
    )
23
23
from ..sixish import (
76
76
 
77
77
    def test_create_if_missing(self):
78
78
        # $HOME should be set to '.'
79
 
        ignore_path = config.user_ignore_config_filename()
 
79
        ignore_path = bedding.user_ignore_config_path()
80
80
        self.assertPathDoesNotExist(ignore_path)
81
81
        user_ignores = ignores.get_user_ignores()
82
82
        self.assertEqual(set(ignores.USER_DEFAULTS), user_ignores)
95
95
 
96
96
    def test_use_empty(self):
97
97
        ignores._set_user_ignores([])
98
 
        ignore_path = config.user_ignore_config_filename()
 
98
        ignore_path = bedding.user_ignore_config_path()
99
99
        self.check_file_contents(ignore_path, b'')
100
100
 
101
101
        self.assertEqual(set([]), ignores.get_user_ignores())