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

Class TestFlask

tests/test_flask.py:5–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3from flask import Flask, request
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