File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,9 @@ def ep_method(self):
59
59
60
60
resp = cl .get ('/meta/json/' )
61
61
assert resp .status_code == 200
62
+ resp_data = json .loads (resp .data )
62
63
63
- endpoints = [r ['endpoint' ] for r in json . loads ( resp . data ) ['app' ]['routes' ]]
64
+ endpoints = [r ['endpoint' ] for r in resp_data ['app' ]['routes' ]]
64
65
assert endpoints == [{'module_name' : 'clastic.tests.test_meta' , 'name' : 'func_ep' },
65
66
{'module_name' : 'clastic.tests.test_meta.CallableObj' , 'name' : 'ep_method' },
66
67
{'module_name' : 'clastic.tests.test_meta' , 'name' : 'CallableObj' },
@@ -70,7 +71,9 @@ def ep_method(self):
70
71
'name' : 'get_file_response' },
71
72
{'module_name' : 'clastic.meta.MetaApplication' , 'name' : 'get_main' },
72
73
{'module_name' : 'builtins' , 'name' : 'sum' }]
73
-
74
+
75
+ for peripheral , info in resp_data .items ():
76
+ assert 'exc_content' not in info , f'failed meta context for domain "{ peripheral } ": { info ["exc_content" ]} '
74
77
75
78
def test_resource_redaction ():
76
79
app = Application (routes = [('/meta' , MetaApplication ())],
You can’t perform that action at this time.
0 commit comments