MCPcopy
hub / github.com/hugapi/hug / check_requirements

Method check_requirements

hug/interface.py:293–304  ·  view source on GitHub ↗

Checks to see if all requirements set pass if all requirements pass nothing will be returned otherwise, the error reported will be returned

(self, request=None, response=None, context=None)

Source from the content-addressed store, hash-verified

291 return errors
292
293 def check_requirements(self, request=None, response=None, context=None):
294 """Checks to see if all requirements set pass
295
296 if all requirements pass nothing will be returned
297 otherwise, the error reported will be returned
298 """
299 for requirement in self.requires:
300 conclusion = requirement(
301 response=response, request=request, context=context, module=self.api.module
302 )
303 if conclusion and conclusion is not True:
304 return conclusion
305
306 def documentation(self, add_to=None):
307 """Produces general documentation for the interface"""

Callers 2

__call__Method · 0.80
__call__Method · 0.80

Calls 1

requirementFunction · 0.85

Tested by

no test coverage detected