Skip to content
Myr

test_js_example.py

This file

Path

examples/javascript/tests/test_js_example.py

27 lines · 729 bytes · Python

Last changed by

Merge pull request #3246 from pallets/reorder-importsDavid Lordbefore adoption3db4697

History of this file

Take it

The walk stopped after 200 commits: lines older than 3394191 point at it.

Fixes for sentry docs (#2991)Markus Unterwaditzerbefore adoption3394191

lines 1–4why, one step back
1import pytest
2from flask import template_rendered34

Merge pull request #3183 from singingwolfboy/pre-commitDavid Baumgoldbefore adoption1dda032

lines 5–13why, one step back
5@pytest.mark.parametrize(
6 ("path", "template_name"),7 (8 ("/", "plain.html"),9 ("/plain", "plain.html"),10 ("/fetch", "fetch.html"),11 ("/jquery", "jquery.html"),12 ),13)

Fixes for sentry docs (#2991)Markus Unterwaditzerbefore adoption3394191

lines 14–21why, one step back
14def test_index(app, client, path, template_name):
15 def check(sender, template, context):16 assert template.name == template_name1718 with template_rendered.connected_to(check, app):19 client.get(path)2021

Merge pull request #3183 from singingwolfboy/pre-commitDavid Baumgoldbefore adoption1dda032

lines 22–24why, one step back
22@pytest.mark.parametrize(
23 ("a", "b", "result"), ((2, 3, 5), (2.5, 3, 5.5), (2, None, 2), (2, "b", 2))24)

Fixes for sentry docs (#2991)Markus Unterwaditzerbefore adoption3394191

line 25why, one step back
25def test_add(client, a, b, result):

Merge pull request #3183 from singingwolfboy/pre-commitDavid Baumgoldbefore adoption1dda032

lines 26–27why, one step back
26 response = client.post("/add", data={"a": a, "b": b})
27 assert response.get_json()["result"] == result