diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ranger/container/test_bookmarks.py | 3 | ||||
-rw-r--r-- | tests/ranger/container/test_container.py | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/ranger/container/test_bookmarks.py b/tests/ranger/container/test_bookmarks.py index 46c615c6..cfaf3ba1 100644 --- a/tests/ranger/container/test_bookmarks.py +++ b/tests/ranger/container/test_bookmarks.py @@ -4,6 +4,7 @@ import pytest from ranger.container.bookmarks import Bookmarks + def testbookmarks(tmpdir): # Bookmarks point to directory location and allow fast access to # 'favorite' directories. They are persisted to a bookmark file, plain text. @@ -36,8 +37,10 @@ def testbookmarks(tmpdir): # We don't uneccesary update when the file on disk does not change origupdate = secondstore.update + class OutOfDateException(Exception): pass + def crash(): raise OutOfDateException("Don't access me") secondstore.update = crash diff --git a/tests/ranger/container/test_container.py b/tests/ranger/container/test_container.py index 140186d0..2b823912 100644 --- a/tests/ranger/container/test_container.py +++ b/tests/ranger/container/test_container.py @@ -4,6 +4,7 @@ from ranger.container import history HISTORY_TEST_ENTRIES = [str(k) for k in range(20)] OTHER_TEST_ENTRIES = [str(k) for k in range(40, 45)] + def testhistorybasic(): # A history is a buffer of limited size that stores the last `maxlen` # item added to it. It has a `current` index that serves as a cursor. |