MCPcopy
hub / github.com/pallets/flask / app

Method app

tests/test_cli.py:448–456  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

446class TestRoutes:
447 @pytest.fixture
448 def app(self):
449 app = Flask(__name__)
450 app.add_url_rule(
451 "/get_post/<int:x>/<int:y>",
452 methods=["GET", "POST"],
453 endpoint="yyy_get_post",
454 )
455 app.add_url_rule("/zzz_post", methods=["POST"], endpoint="aaa_post")
456 return app
457
458 @pytest.fixture
459 def invoke(self, app, runner):

Callers 1

__call__Method · 0.45

Calls 2

FlaskClass · 0.90
add_url_ruleMethod · 0.45

Tested by

no test coverage detected