Skip to content

Commit

Permalink
rever token clean-up test_cli
Browse files Browse the repository at this point in the history
  • Loading branch information
burnout87 committed Nov 9, 2023
1 parent 130cc5d commit 0094ee6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@ 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

os.remove(os.path.join(os.getcwd(), ".oda-token"))
os.environ.pop('ODA_TOKEN', None)
os.remove(oda_token_home_fn)
assert '"mssub": true' in caplog.text

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

0 comments on commit 0094ee6

Please sign in to comment.