[tests] dummy domain test (you can use this example in your own domain)

This commit is contained in:
Maxime Alves LIRMM@home 2021-12-01 17:02:23 +01:00
parent cf98b08fa5
commit a2d79f49b9
2 changed files with 11 additions and 0 deletions

View File

@ -156,3 +156,4 @@ def domain(domain, delete, update, create, read): #, domains, read, create, upd
default=ORJSONResponse.default_cast) default=ORJSONResponse.default_cast)
) )
sys.exit(0)

10
tests/test_domain.py Normal file
View File

@ -0,0 +1,10 @@
from halfapi.testing.test_domain import TestDomain
from dummy_domain import __name__, __routers__
from pprint import pprint
class TestDummyDomain(TestDomain):
DOMAIN = __name__
ROUTERS = __routers__
def test_domain(self):
self.check_domain()