From 1210c3fbd35c0a94725fded04a92f3e06ec27f0b Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Fri, 6 Jan 2017 18:10:50 +0100 Subject: pyflakes + pep8 cleanup --- tests/test_collection.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests') 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: -- cgit v1.2.3