Skip to content

Commit

Permalink
test: update git ls-files assertions (#1647)
Browse files Browse the repository at this point in the history
Signed-off-by: Xabier Napal <xabiernapal@pm.me>
  • Loading branch information
xabinapal committed Jul 8, 2021
1 parent 6331224 commit 2c61c66
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/TestUtils.py
Expand Up @@ -354,7 +354,11 @@ def test_cli_auto_detect(capfd: CaptureFixture[str]) -> None:
out, err = capfd.readouterr()

# Confirmation that it runs in auto-detect mode
assert "Discovered files to lint using: git ls-files -z" in err
assert (
"Discovered files to lint using: git ls-files --cached --others --exclude-standard -z"
in err
)
assert "Excluded removed files using: git ls-files --deleted -z" in err
# An expected rule match from our examples
assert (
"examples/playbooks/empty_playbook.yml:1: "
Expand Down

0 comments on commit 2c61c66

Please sign in to comment.