Skip to content

Commit

Permalink
cleaning up token location test_token_inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
burnout87 committed Nov 9, 2023
1 parent e4b5cb2 commit 130cc5d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ def test_token_inspect(token_placement, default_token, monkeypatch, caplog, tmpd
else:
assert result.exit_code == 0
assert '"sub": "[email protected]"' in caplog.text
assert '"mssub": true' in caplog.text
assert '"mssub": true' in caplog.text

Check warning on line 47 in tests/test_cli.py

View check run for this annotation

Codecov / codecov/patch

tests/test_cli.py#L47

Added line #L47 was not covered by tests

os.remove(os.path.join(os.getcwd(), ".oda-token"))
os.environ.pop('ODA_TOKEN', None)
os.remove(oda_token_home_fn)

Check warning on line 51 in tests/test_cli.py

View check run for this annotation

Codecov / codecov/patch

tests/test_cli.py#L49-L51

Added lines #L49 - L51 were not covered by tests

def test_token_modify(default_token, secret_key, monkeypatch, caplog):
monkeypatch.setenv('ODA_TOKEN', default_token)
Expand Down

0 comments on commit 130cc5d

Please sign in to comment.