Skip to content

Commit

Permalink
test: invalid config path
Browse files Browse the repository at this point in the history
  • Loading branch information
chadsr committed May 27, 2024
1 parent 09431b0 commit fe52a02
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_waybar_crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,11 @@ def test_read_config_no_api_key():
_ = read_config(tmp_config_path)


def test_read_config_invalid_path():
with pytest.raises(WaybarCryptoException):
_ = read_config("/invalid/config.ini")


class TestWaybarCrypto:
"""Tests for the WaybarCrypto."""

Expand Down

0 comments on commit fe52a02

Please sign in to comment.