tox-dev / tox-uv

Use https://github.com/astral-sh/uv with tox
MIT License
112 stars 17 forks source link

Ensure uv pip freeze is colorless #37

Closed Stealthii closed 7 months ago

Stealthii commented 7 months ago

The 'uv pip freeze' command should automatically determine whether or not to provide coloring if the output is going to a terminal or TTY with support. This is not happening in this case.

Ensuring color is always disabled for this command is a good first step to work around this issue. Fixes #38.

Stealthii commented 7 months ago

Before:

$ file .tox/py38-mindeps/constraints.txt
.tox/py38-mindeps/constraints.txt: ASCII text, with escape sequences

After:

$ file .tox/py38-mindeps/constraints.txt
.tox/py38-mindeps/constraints.txt: ASCII text
Stealthii commented 7 months ago

Apologies, been struggling with testing this one.

gaborbernat commented 7 months ago

Just assert against assert execute_calls.call_args ?

Stealthii commented 7 months ago

Ah ok - I was trying to write a test for the actual output from installed() to validate it as pure string. I've added a test for the call arguments themselves in fab11cf.