Added pytests

This commit is contained in:
Antonio de la Rosa 2025-12-07 23:57:20 +01:00
parent abd9fa7f47
commit 56d2875f46
5 changed files with 572 additions and 1 deletions

View file

@ -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()