MCPcopy Index your code
hub / github.com/hugapi/hug / test_http

Method test_http

tests/test_routing.py:386–388  ·  view source on GitHub ↗

Test to ensure the HTTP METHOD can be set to accept all on the fly

(self)

Source from the content-addressed store, hash-verified

384 assert self.route.call().route["accept"] == hug.HTTP_METHODS
385
386 def test_http(self):
387 """Test to ensure the HTTP METHOD can be set to accept all on the fly"""
388 assert self.route.http().route["accept"] == hug.HTTP_METHODS
389
390 def test_get_post(self):
391 """Test to ensure the HTTP METHOD can be set to GET & POST in one call"""

Callers

nothing calls this directly

Calls 1

httpMethod · 0.45

Tested by

no test coverage detected