Skip to content

Commit

Permalink
fix .git-based tests in CI / other clones
Browse files Browse the repository at this point in the history
  • Loading branch information
luto committed Jul 11, 2024
1 parent 77b2e59 commit 9a49c05
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,16 @@ def test_command_short_regex():
],
)
def test_parse_global_config(ispec_path, expected_cfg):
git_dirs = [
Path(__file__).parent
/ "fixtures/fixtures/parse_global_config/with_dotgit_2/tests/.git",
Path(__file__).parent
/ "fixtures/fixtures/parse_global_config/with_dotgit_1/.git",
]

for git_dir in git_dirs:
git_dir.touch()

cfg = parse_global_config(
Path(__file__).parent / "fixtures/parse_global_config" / ispec_path
)
Expand Down

0 comments on commit 9a49c05

Please sign in to comment.