← pallets/flask

CODEFOSSIL · flask

FlaskClient

class in src/flask/testing.py:109 · Born 2010-07-05 (DERIVED, confidence 1.00)

16years old
44changes
6fixes
12authors
0callers
20112012201320142015201620172018201920202021202220232024202520262010-07-05 e5d8202 Added a docstring2010-10-22 a327452 Better handling for `test_request_context` don't just append the port. Also implemented a proper initial environment to use with `Flask.test_app()` based on the application's configuration.2011-08-25 a5da2c9 Implemented flask.testing.TestClient.session_transaction for quick session modifications in test environments.2011-08-25 311ac0f Ensure that nobody can nest test client invocations2011-08-25 e853a0f The test client and test_request_context are now both using the same logic internally for creating the environ. Also they use APPLICATION_ROOT now.2011-08-26 c8ec453 Require that cookies are enabled in the test client for session transactions2011-08-26 d49221b The test client now properly pops response contexts on __exit__2011-08-29 4dc1796 Fixed session loading in flask.testing.TestClient.session_transaction()2011-09-24 c631613 Context preserving is now part of Flask and not the test client. This fixes #3262014-08-28 b81f720 Fix warnings and code styling in the doc2016-05-09 9f4c569 Fix "with" formatting in doc2016-10-12 bd5e297 Default environ (#2047)2017-05-29 b9c8c9b deprecate app session methods in favor of session_interface ref #11822017-07-13 59f7966 support passing environ to test client (#2412)2019-05-06 025589e Reformat with black2019-05-25 a71c167 fix teardown bug in FlaskClient2019-05-31 976dfed Convert make_test_environ_builder into class (fixes #3207)2019-06-01 53c893b fix string concats left over by black2020-04-04 524fd0b apply pyupgrade2020-04-04 2ae740d f-strings everywhere2020-04-04 171aabc remove unused ref directives2020-11-05 7a444c5 update tests for new werkzeug client (#3827)2021-04-26 7723709 Add initial type hints2021-11-15 564bb27 deprecate as_tuple2022-01-14 aab064f remove deprecated as_tuple parameter from test_client2022-02-09 1be65b1 overriding FlaskClient.open works with redirects2022-03-15 faaa559 accurate type for __exit__2022-07-01 84c7220 new debug/test preserve context implementation2022-07-08 d597db6 contexts no longer use LocalStack2022-07-08 82c2e03 remove uses of LocalStack2022-07-08 e0dad45 update docs about contexts2022-07-09 91044c4 Change _cv_req -> _cv_request2022-07-13 69f9845 add json provider interface2022-11-25 d178653 update requirements2023-04-12 04c2138 update test cookie handling for Werkzeug 2.32023-04-20 44ffe6c add __future__ annotations2023-05-01 e1aedec update werkzeug2023-05-02 3fbfbad werkzeug 2.3.3 compatibility2023-08-21 5bb3027 bump werkzeug 2.3.72023-08-21 9f95502 bump werkzeug 2.3.72024-01-16 6000e80 address mypy strict findings2025-08-18 53b8f08 push preserved contexts in correct order2025-09-19 c2705ff merge app and request context2026-08-11 de8429f Fix IPv6 session transactions2010-07-05 df3f894 Added separate module for testing
Every commit that changed it, 2010-07-05 – 2026-08-11. Raised orange dots are fixes.
  1. Changed Fix IPv6 session transactions

    de8429f · lkk7 fix · INFERRED

  2. Changed merge app and request context

    c2705ff · David Lord

  3. Changed push preserved contexts in correct order

    53b8f08 · David Lord

  4. Changed address mypy strict findings

    6000e80 · David Lord

  5. Changed bump werkzeug 2.3.7

    9f95502 · David Lord

  6. Changed bump werkzeug 2.3.7

    5bb3027 · David Lord

  7. Changed werkzeug 2.3.3 compatibility

    3fbfbad · David Lord

  8. Changed update werkzeug

    e1aedec · David Lord

  9. Changed add __future__ annotations

    44ffe6c · David Lord

  10. Changed update test cookie handling for Werkzeug 2.3

    04c2138 · David Lord

  11. Changed update requirements

    d178653 · David Lord

  12. Changed add json provider interface

    69f9845 · David Lord

  13. Changed Change _cv_req -> _cv_request

    91044c4 · pgjones

  14. Changed update docs about contexts

    e0dad45 · David Lord

  15. Changed remove uses of LocalStack

    82c2e03 · David Lord

  16. Changed contexts no longer use LocalStack

    d597db6 · David Lord

  17. Changed new debug/test preserve context implementation

    84c7220 · David Lord

  18. Changed accurate type for __exit__

    faaa559 · David Lord

  19. Changed overriding FlaskClient.open works with redirects

    1be65b1 · David Lord

  20. Changed remove deprecated as_tuple parameter from test_client

    aab064f · David Lord

  21. Changed deprecate as_tuple

    564bb27 · David Lord

  22. Changed Add initial type hints

    7723709 · pgjones

  23. Changed update tests for new werkzeug client (#3827)

    7a444c5 · David Lord

  24. Changed remove unused ref directives

    171aabc · David Lord

  25. Changed f-strings everywhere

    2ae740d · David Lord

  26. Changed apply pyupgrade

    524fd0b · David Lord

  27. Changed fix string concats left over by black

    53c893b · David Lord fix · INFERRED

  28. Changed Convert make_test_environ_builder into class (fixes #3207)

    976dfed · Daniel Pope fix · INFERRED

  29. Changed fix teardown bug in FlaskClient

    a71c167 · Fantix King fix · INFERRED

  30. Changed Reformat with black

    025589e · David Baumgold

  31. Changed support passing environ to test client (#2412)

    59f7966 · David Lord

  32. Changed deprecate app session methods in favor of session_interface ref #1182

    b9c8c9b · David Lord

  33. Changed Default environ (#2047)

    bd5e297 · Michael Recachinas

  34. Changed Fix "with" formatting in doc

    9f4c569 · Benjamin Dopplinger

  35. Changed Fix warnings and code styling in the doc

    b81f720 · Paulo Bu

  36. Changed Context preserving is now part of Flask and not the test client. This fixes #326

    c631613 · Armin Ronacher fix · INFERRED

  37. Changed Fixed session loading in flask.testing.TestClient.session_transaction()

    4dc1796 · Michał Bartoszkiewicz fix · INFERRED

  38. Changed The test client now properly pops response contexts on __exit__

    d49221b · Armin Ronacher

  39. Changed Require that cookies are enabled in the test client for session transactions

    c8ec453 · Armin Ronacher

  40. Changed The test client and test_request_context are now both using the same logic internally for creating the environ. Also they use APPLICATION_ROOT now.

    e853a0f · Armin Ronacher

  41. Changed Ensure that nobody can nest test client invocations

    311ac0f · Armin Ronacher

  42. Changed Implemented flask.testing.TestClient.session_transaction for quick session modifications in test environments.

    a5da2c9 · Armin Ronacher

  43. Changed Better handling for `test_request_context` don't just append the port. Also implemented a proper initial environment to use with `Flask.test_app()` based on the application's configuration.

    a327452 · Pedro Algarvio

  44. Changed Added a docstring

    e5d8202 · Armin Ronacher

  45. Born Added separate module for testing

    df3f894 · Armin Ronacher