diff options
author | Jeremy Retailleau <jeremy.retailleau@gmail.com> | 2020-09-02 17:38:43 -0700 |
---|---|---|
committer | Jeremy Retailleau <jeremy.retailleau@gmail.com> | 2020-09-02 17:38:43 -0700 |
commit | c3fc83f2333eaee5fbcbef6df9f4ed9eb320fd11 (patch) | |
tree | 623b4a3b380ad9c83fbc58a19c1ce23b36747c97 /test | |
parent | 16d3ebfa3ad32d281ebdd77de587251015d04b3b (diff) | |
download | gitpython-c3fc83f2333eaee5fbcbef6df9f4ed9eb320fd11.tar.gz |
Add missing rules to match hierarchy path
Diffstat (limited to 'test')
-rw-r--r-- | test/test_config.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_config.py b/test/test_config.py index 12fad15c..406d794e 100644 --- a/test/test_config.py +++ b/test/test_config.py @@ -299,6 +299,14 @@ class TestBase(TestCase): assert not config._has_includes() assert config._included_paths() == [] + # Ensure that config is included if path in hierarchy. + with open(path1, "w") as stream: + stream.write(template.format("gitdir", "target1/", path2)) + + with GitConfigParser(path1, repo=repo) as config: + assert config._has_includes() + assert config._included_paths() == [("path", path2)] + @with_rw_directory def test_conditional_includes_from_branch_name(self, rw_dir): # Initiate mocked branch |