Skip to content

Commit

Permalink
fix tests that only fail when TERM is unset
Browse files Browse the repository at this point in the history
  • Loading branch information
mishaschwartz committed Jan 7, 2025
1 parent f6a61d4 commit e9282cc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/unit/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ def test_configs_set_env_file(cli_path, run, local_env_file, tmp_path, flag):
def test_log_stdout(cli_path, run, logging_script, flag):
proc = run(f"{cli_path} {flag} compose", compose=logging_script)
check_log_output(DEFAULT_LOG_CHECK_LEVELS, proc.stdout)
assert not proc.stderr


@pytest.mark.parametrize("flag", ["--log-file ", "-l ", "--log-file=", "-l="])
Expand All @@ -205,7 +204,6 @@ def test_default_log_fd(cli_path, run, logging_script):
def test_log_quiet(cli_path, run, logging_script, flag):
proc = run(f"{cli_path} {flag} compose", compose=logging_script)
assert not proc.stdout
assert not proc.stderr


def test_log_file_stdout(cli_path, run, tmp_path, logging_script):
Expand All @@ -214,7 +212,6 @@ def test_log_file_stdout(cli_path, run, tmp_path, logging_script):
with open(log_path) as f:
check_log_output(DEFAULT_LOG_CHECK_LEVELS, f.read())
check_log_output(DEFAULT_LOG_CHECK_LEVELS, proc.stdout)
assert not proc.stderr


def test_log_file_quiet(cli_path, run, tmp_path, logging_script):
Expand All @@ -223,7 +220,6 @@ def test_log_file_quiet(cli_path, run, tmp_path, logging_script):
with open(log_path) as f:
check_log_output(DEFAULT_LOG_CHECK_LEVELS, f.read())
assert not proc.stdout
assert not proc.stderr


@pytest.mark.parametrize("flag", ["-L ", "--log-level ", "-L=", "--log-level="])
Expand Down

0 comments on commit e9282cc

Please sign in to comment.