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

Add render_block function #60

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Commits on Sep 26, 2024

  1. Add render_block function

    This function returns a response that calls render_block_to_string()
    under the hood to generate the content of the response.
    
    (cherry picked from commit 4d9297e)
    Sander Kooijmans committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    fb17ce4 View commit details
    Browse the repository at this point in the history
  2. Fix line that is too long

    (cherry picked from commit e46abe5)
    Sander Kooijmans committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    f5e6e98 View commit details
    Browse the repository at this point in the history
  3. Add tests for render_block()

    Because render_block() must be called from view code, the settings have been
    changed for the tests to include a "tests" app, with a single URL and a single
    View class.
    
    (cherry picked from commit 1e1683a)
    Sander Kooijmans committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    90a78c6 View commit details
    Browse the repository at this point in the history
  4. Replace pytext fixture by setup() and tearDown()

    This is more in sync with the rest of the project and is a bit easier to
    understand.
    
    (cherry picked from commit 97819c4)
    Sander Kooijmans committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    f7597a2 View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2024

  1. Use assertEqual instead of assertEquals

    Sander Kooijmans committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    f886eea View commit details
    Browse the repository at this point in the history
  2. Fix type annotations

    Sander Kooijmans committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    68c1bf8 View commit details
    Browse the repository at this point in the history
  3. Fix order of imports

    Sander Kooijmans committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    e42cb4c View commit details
    Browse the repository at this point in the history
  4. Use type annotation syntax of Python 3.8

    Sander Kooijmans committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    0fe791d View commit details
    Browse the repository at this point in the history