Skip to content

Commit

Permalink
Disable ANSI output during testing (#1422)
Browse files Browse the repository at this point in the history
This makes output of test failures easier to read as they will no
longer end-up containing ANSI.
  • Loading branch information
ssbarnea authored Mar 4, 2021
1 parent 3286c77 commit eb04159
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
"""PyTest Fixtures."""
import os
import re
import sys

os.environ["NO_COLOR"] = "1"
pytest_plugins = ["ansiblelint.testing.fixtures"]


Expand Down
1 change: 1 addition & 0 deletions src/ansiblelint/testing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def run_ansible_lint(
'LANG',
'LC_ALL',
'LC_CTYPE',
'NO_COLOR',
'PATH',
'PYTHONIOENCODING',
'PYTHONPATH',
Expand Down

0 comments on commit eb04159

Please sign in to comment.