summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2016-12-19 22:22:18 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2016-12-19 22:22:18 +0100
commitcb3e5563633c3a41dde6dac1470ae1334b2ccc9f (patch)
tree148b8fdc0e972dc47b3fbb8eae5681e76a1d6baa
parent6e6275231e6e66f9024d10c5395479e86939eb20 (diff)
style cleanup
-rw-r--r--lesana/collection.py3
-rw-r--r--lesana/command.py1
-rwxr-xr-xscripts/lesana3
-rw-r--r--tests/test_collection.py5
4 files changed, 5 insertions, 7 deletions
diff --git a/lesana/collection.py b/lesana/collection.py
index df4a65e..c15f517 100644
--- a/lesana/collection.py
+++ b/lesana/collection.py
@@ -46,7 +46,6 @@ class Entry(object):
data[field['name']] = None
return data
-
@property
def yaml_data(self):
return ruamel.yaml.dump(self.data, Dumper=ruamel.yaml.RoundTripDumper)
@@ -157,7 +156,7 @@ class Collection(object):
def save_entries(self, entries=None):
if not entries:
- raise NotImplementedYet
+ raise NotImplementedError
for e in entries:
complete_name = os.path.join(
self.basedir,
diff --git a/lesana/command.py b/lesana/command.py
index bd6ecab..cefd457 100644
--- a/lesana/command.py
+++ b/lesana/command.py
@@ -1,5 +1,4 @@
import gadona
-#from .collection import Collection, Entry
from . import Collection, Entry
diff --git a/scripts/lesana b/scripts/lesana
index 64cbc17..0cc8a0e 100755
--- a/scripts/lesana
+++ b/scripts/lesana
@@ -10,6 +10,3 @@ if __name__ == '__main__':
New(),
]
app.main()
-
-
-
diff --git a/tests/test_collection.py b/tests/test_collection.py
index 82722b1..68c29f3 100644
--- a/tests/test_collection.py
+++ b/tests/test_collection.py
@@ -23,7 +23,10 @@ class testCollectionLoading(unittest.TestCase):
def test_simple(self):
self.collection = lesana.Collection('tests/data/simple')
self.assertIsNotNone(self.collection.settings)
- self.assertEqual(self.collection.settings['name'], "Simple lesana collection")
+ self.assertEqual(
+ self.collection.settings['name'],
+ "Simple lesana collection"
+ )
self.assertEqual(len(self.collection.settings['fields']), 4)
self.collection.update_cache()