summaryrefslogtreecommitdiff
path: root/tests/config/cli
diff options
context:
space:
mode:
authorMiroslav Šedivý <6774676+eumiro@users.noreply.github.com>2021-04-06 08:02:41 +0200
committerGitHub <noreply@github.com>2021-04-06 07:02:41 +0100
commit00aaba2ab7ea71c13076f3ed72d9d7e6aefa72b7 (patch)
treed01d0ce5a21418c8ba365edc3cdaee83cca6fcdb /tests/config/cli
parent3aec6725d11f4017ec7164261c470d371c7cfbee (diff)
downloadtox-git-00aaba2ab7ea71c13076f3ed72d9d7e6aefa72b7.tar.gz
Refactor: Simplify and clean up the code (#1997)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Diffstat (limited to 'tests/config/cli')
-rw-r--r--tests/config/cli/test_parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/config/cli/test_parser.py b/tests/config/cli/test_parser.py
index 47d74bb8..23c87509 100644
--- a/tests/config/cli/test_parser.py
+++ b/tests/config/cli/test_parser.py
@@ -47,7 +47,7 @@ def test_parser_color(
stdout_mock.isatty.return_value = is_atty
if tox_color in ("yes", "no"):
- expected = True if tox_color == "yes" else False
+ expected = tox_color == "yes"
elif no_color == "1":
expected = False
elif force_color == "1":