[testing] fix check_routes of test_domain
This commit is contained in:
parent
5d5ffdfb7c
commit
776cc8c85e
|
@ -66,19 +66,21 @@ class TestDomain(TestCase):
|
||||||
return result_d
|
return result_d
|
||||||
|
|
||||||
def check_routes(self):
|
def check_routes(self):
|
||||||
halfapi = HalfAPI({
|
halfapi_conf = {
|
||||||
'domain': {
|
'domain': {}
|
||||||
'dummy_domain': {
|
}
|
||||||
'name': self.DOMAIN,
|
|
||||||
'router': self.ROUTERS,
|
halfapi_conf['domain'][self.DOMAIN] = {
|
||||||
'prefix': False,
|
'name': self.DOMAIN,
|
||||||
'enabled': True,
|
'router': self.ROUTERS,
|
||||||
'config': {
|
'prefix': False,
|
||||||
'test': True
|
'enabled': True,
|
||||||
}
|
'config': {
|
||||||
}
|
'test': True
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
|
|
||||||
|
halfapi = HalfAPI(halfapi_conf)
|
||||||
|
|
||||||
client = TestClient(halfapi.application)
|
client = TestClient(halfapi.application)
|
||||||
r = client.get('/')
|
r = client.get('/')
|
||||||
|
|
Loading…
Reference in New Issue