Closed TaIos closed 4 years ago
The output is not colorful because pytest with MINGW64 terminal on Windows interprets ANSI escape sequences as plain characters.
Does that also happen when colorama is installed?
Does that also happen when colorama is installed?
Colorama was already installed:
$ python --version
Python 3.8.2
$ python -m pip freeze
atomicwrites==1.4.0
attrs==20.2.0
certifi==2020.6.20
chardet==3.0.4
click==7.1.2
colorama==0.4.3
idna==2.10
iniconfig==1.0.1
packaging==20.4
pluggy==0.13.1
py==1.9.0
pyparsing==2.4.7
pytest==6.1.1
requests==2.24.0
six==1.15.0
toml==0.10.1
urllib3==1.25.10
For me colors are working fine... even in cmd.exe
Tests passed, some feedback for the code:
https://github.com/TaIos/comitee/blob/5d5784150d2dc86d3273987f772852531eb7069e/committee.py#L86
src
folder, module-per-class, module-per-function, ...) is not widely used/recommended, but we will learn this next week. (see The Zen of Python)
Submitted task passes all tests (also radioactive). The output is not colorful because
pytest
withMINGW64
terminal on Windows interprets ANSI escape sequences as plain characters. However, all color functionality can be turned on by replacing fiveclick.echo
forprint
insrc/printing.py
or by switching tofeature/colors
branch.