Skip to content

Commit 2ec6924

Browse files
committed
Adding test case for this scenario
1 parent 5c0f3ca commit 2ec6924

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_agnostic_backend.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,8 @@ def test_current_platform_cache_roundtrip_with_alias_class(temp_location):
4444
def test_persisted_token_cache(temp_location):
4545
_test_token_cache_roundtrip(PersistedTokenCache(FilePersistence(temp_location)))
4646

47+
def test_file_not_found_error_is_not_raised():
48+
persistence = FilePersistence('non_existing_file')
49+
cache = PersistedTokenCache(persistence=persistence)
50+
# An exception raised here will fail the test case as it is supposed to be a NO-OP
51+
cache.find('')

0 commit comments

Comments
 (0)