MCPcopy Create free account
hub / github.com/Kaggle/docker-python / test_request

Method test_request

tests/test_flask.py:6–10  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4
5class TestFlask(unittest.TestCase):
6 def test_request(self):
7 app = Flask(__name__)
8 with app.test_request_context('/foo', method='POST'):
9 assert request.path == '/foo'
10 assert request.method == 'POST'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected