Skip to content

Commit

Permalink
setting caplog logging level
Browse files Browse the repository at this point in the history
  • Loading branch information
burnout87 committed Jan 10, 2024
1 parent 2736de1 commit d33f3ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import logging
import re
from typing import ChainMap
from click.testing import CliRunner
Expand Down Expand Up @@ -40,12 +41,13 @@ def test_inspect_state(dispatcher_live_fixture, monkeypatch, group_by_job):
if group_by_job:
args.append('--group-by-job')
result = runner.invoke(cli.cli, args=args, obj={})

print(result)
assert result.exit_code == 0

Check warning on line 45 in tests/test_cli.py

View check run for this annotation

Codecov / codecov/patch

tests/test_cli.py#L39-L45

Added lines #L39 - L45 were not covered by tests


@pytest.mark.parametrize('token_placement', ['no', 'env', 'homedotfile', 'cwddotfile'])
def test_token_inspect(token_placement, default_token, monkeypatch, caplog, tmpdir):
caplog.set_level(logging.DEBUG)

Check warning on line 50 in tests/test_cli.py

View check run for this annotation

Codecov / codecov/patch

tests/test_cli.py#L50

Added line #L50 was not covered by tests
# reset any existing token locations
os.makedirs(tmpdir, exist_ok=True)
monkeypatch.setenv('HOME', tmpdir)
Expand Down

0 comments on commit d33f3ff

Please sign in to comment.