Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(testing): improve create_req and create_asgi_req #2249

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Commits on Jul 14, 2024

  1. feat(testing): make create_req consistent with simulate_request

    enable passing `json`, `params`, `params_csv`, `content_type`
    enable passing arbitrary WSGI envs through `extras`
    do extra checks on request attributes through `_prepare_sim_args`
    move `_prepare_sim_args` to `helpers.py`
    iuliachiriac committed Jul 14, 2024
    Configuration menu
    Copy the full SHA
    3b29de5 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2024

  1. Configuration menu
    Copy the full SHA
    85e2704 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2024

  1. feat(testing): improve create_asgi_req

    * enable passing `json`, `params`, `params_csv`, `content_type`,
      `extras`
    * do extra checks on request attributes through `_prepare_sim_args`
    * set Content-Length if not passed
    * add extras to ASGI scope
    iuliachiriac committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    53c633d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c377ab9 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2024

  1. Configuration menu
    Copy the full SHA
    7039e12 View commit details
    Browse the repository at this point in the history
  2. fix(tests) fix test failing on cython

    * test was failing with a TypeError (expected str, got MagicMock)
    * keep mocked function behaviour by using a side_effect
    iuliachiriac committed Jul 19, 2024
    Configuration menu
    Copy the full SHA
    f5bd3ea View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2024

  1. Configuration menu
    Copy the full SHA
    a45807e View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2024

  1. Configuration menu
    Copy the full SHA
    bb056b2 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2024

  1. Configuration menu
    Copy the full SHA
    0b23def View commit details
    Browse the repository at this point in the history