diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2017-01-06 18:10:50 +0100 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2017-01-06 18:10:50 +0100 |
commit | 1210c3fbd35c0a94725fded04a92f3e06ec27f0b (patch) | |
tree | 7c2061cf89b4e6657ee4d55b909a8e729e0319bc /tests/test_collection.py | |
parent | 7ebb9a1be3d5073ec4a6727f184714750f440449 (diff) |
pyflakes + pep8 cleanup
Diffstat (limited to 'tests/test_collection.py')
-rw-r--r-- | tests/test_collection.py | 3 |
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: |