aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_collection.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_collection.py b/tests/test_collection.py
index 8e8e5f1..d8190ca 100644
--- a/tests/test_collection.py
+++ b/tests/test_collection.py
@@ -47,7 +47,7 @@ class testCollectionLoading(unittest.TestCase):
def test_no_index_for_one_entry(self):
# This loads a collection where some of the entries have no
# "index" field
- with self.assertLogs(level=logging.WARNING) as cm:
+ with self.assertLogs(level=logging.WARNING):
self.collection = lesana.Collection('tests/data/wrong')
self.collection.update_cache()
self.assertIsNotNone(self.collection.settings)
@@ -85,7 +85,6 @@ class testEntries(unittest.TestCase):
def tearDown(self):
shutil.rmtree(os.path.join(self.collection.basedir, '.lesana'))
-
def test_simple(self):
fname = '085682ed-6792-499d-a3ab-9aebd683c011.yaml'
with open(os.path.join(self.basepath, fname)) as fp: