Added lookup tests. #15
[zzz-pokedex.git] / pokedex / tests / __init__.py
diff --git a/pokedex/tests/__init__.py b/pokedex/tests/__init__.py
new file mode 100644 (file)
index 0000000..29b7a56
--- /dev/null
@@ -0,0 +1,15 @@
+import unittest
+
+from pokedex.lookup import open_index
+from pokedex.db import connect
+from pokedex.db.load import load
+
+def setup():
+    # Reload data just in case
+    session = connect()
+    load(session, verbose=False, drop_tables=True)
+    open_index(session=session, recreate=True)
+
+
+def teardown():
+    print "teardown"