Added engine file and separated test code
This commit is contained in:
parent
02a140ee67
commit
da9f8f72ec
2 changed files with 43 additions and 38 deletions
4
src/engine.py
Normal file
4
src/engine.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
class Engine:
|
||||
"""Calculates a sequence."""
|
||||
|
||||
|
|
@ -153,6 +153,8 @@ class Flickr:
|
|||
return Flickr.schema().loads(json)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
# Small test
|
||||
f = Flickr(
|
||||
[
|
||||
Space(
|
||||
|
@ -188,7 +190,6 @@ f = Flickr(
|
|||
],
|
||||
)
|
||||
|
||||
|
||||
f.save("test.json")
|
||||
a = Flickr.load("test.json")
|
||||
|
||||
|
|
Loading…
Reference in a new issue