[testing] fix check_routes of test_domain

This commit is contained in:
Maxime Alves LIRMM@home 2021-12-14 09:04:06 +01:00
parent 5d5ffdfb7c
commit 776cc8c85e
1 changed files with 14 additions and 12 deletions

View File

@ -66,19 +66,21 @@ class TestDomain(TestCase):
return result_d
def check_routes(self):
halfapi = HalfAPI({
'domain': {
'dummy_domain': {
'name': self.DOMAIN,
'router': self.ROUTERS,
'prefix': False,
'enabled': True,
'config': {
'test': True
}
}
halfapi_conf = {
'domain': {}
}
halfapi_conf['domain'][self.DOMAIN] = {
'name': self.DOMAIN,
'router': self.ROUTERS,
'prefix': False,
'enabled': True,
'config': {
'test': True
}
})
}
halfapi = HalfAPI(halfapi_conf)
client = TestClient(halfapi.application)
r = client.get('/')