Commits

Sam Hart committed 63a4fae

make tests importable, more work on se

Comments (0)

Files changed (2)

src/tests/__init__.py

Empty file added.

src/tests/manual_tests/test_SimpleEntries.py

 
 from tests.testMain import testMain
 
-entries =
+entries = \
 [
     (
         'The Amazing Bambini',
     )
 ]
 
+from noink import mainApp
 from noink.userDB import UserDB
 from noink.entryDB import EntryDB
 
         self.userDB = UserDB()
         self.entryDB = EntryDB()
 
-        u = userDB.add("criswell", "Sam Hart")
-
+        u = self.userDB.add("criswell", "Sam Hart")
+        for e in entries:
+            entry = self.entryDB.add(e[0], e[1], u)
 
     def __del__(self):
         del(self.testMain)
 
+    def run(self):
+        mainApp.run()
+
+if __name__ == '__main__':
+    se = SimpleEntries()
+    se.run()