diff options
author | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2019-01-27 02:46:25 +0100 |
---|---|---|
committer | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2019-01-27 02:46:25 +0100 |
commit | 8374ae53f1604f887255bd6214aae2b40b03c6f8 (patch) | |
tree | dd93486cf156bc6d91b1b650cfa4569af1ccb945 /tests | |
parent | 981945a9afe4cca3b2e93ee0a57a22460b68f794 (diff) | |
download | ranger-8374ae53f1604f887255bd6214aae2b40b03c6f8.tar.gz |
Make it easier to test bookmarks by optionally disabling validation
The test bookmarks were intentionally bogus as we cannot reliably predict valid paths on the test system, so validation doesn't make any sense there.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ranger/container/test_bookmarks.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ranger/container/test_bookmarks.py b/tests/ranger/container/test_bookmarks.py index 64192c06..8c62bd23 100644 --- a/tests/ranger/container/test_bookmarks.py +++ b/tests/ranger/container/test_bookmarks.py @@ -12,7 +12,7 @@ def testbookmarks(tmpdir): # Bookmarks point to directory location and allow fast access to # 'favorite' directories. They are persisted to a bookmark file, plain text. bookmarkfile = tmpdir.join("bookmarkfile") - bmstore = Bookmarks(str(bookmarkfile)) + bmstore = Bookmarks(str(bookmarkfile), validate=False) # loading an empty bookmark file doesnot crash bmstore.load() @@ -33,7 +33,7 @@ def testbookmarks(tmpdir): # We can persist bookmarks to disk and restore them from disk bmstore.save() - secondstore = Bookmarks(str(bookmarkfile)) + secondstore = Bookmarks(str(bookmarkfile), validate=False) secondstore.load() assert "'" in secondstore assert secondstore["'"] == "the milk" |