Added pytests
This commit is contained in:
parent
abd9fa7f47
commit
56d2875f46
5 changed files with 572 additions and 1 deletions
|
|
@ -1,7 +1,13 @@
|
|||
from settings import config
|
||||
from cuchulu.libraries.db.webmodel import WebModel
|
||||
from cuchulu.libraries.db import corefields
|
||||
import unittest
|
||||
import sys, os
|
||||
|
||||
#sys.path.insert(0, '../')
|
||||
|
||||
#from settings import config
|
||||
|
||||
|
||||
# Create TestWebModelMethods
|
||||
|
||||
class ExampleModel(WebModel):
|
||||
|
|
@ -301,5 +307,8 @@ class TestWebModelMethods(unittest.TestCase):
|
|||
connection.close()
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
|
||||
|
||||
unittest.main()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue