| 1 | From c3c7d6fd6cbc275fffd0d1da07aa4fc1ad8295e0 Mon Sep 17 00:00:00 2001
|
| 2 | From: Tanguy Le Carrour <[email protected]>
|
| 3 | Date: Wed, 18 Feb 2026 08:47:27 +0100
|
| 4 | Subject: [PATCH] Remove mentions to litestar and sanic from test
|
| 5 | configuration.
|
| 6 |
|
| 7 | ---
|
| 8 | tests/conftest.py | 19 -------------------
|
| 9 | 1 file changed, 19 deletions(-)
|
| 10 |
|
| 11 | diff --git a/tests/conftest.py b/tests/conftest.py
|
| 12 | index 981b116..4c02ef3 100644
|
| 13 | |
| 14 | |
| 15 | @@ -4,13 +4,9 @@ import pathlib
|
| 16 |
|
| 17 | import fastapi
|
| 18 | import flask
|
| 19 | -import litestar
|
| 20 | import pytest
|
| 21 | import quart
|
| 22 | -import sanic
|
| 23 | -import sanic_ext
|
| 24 | from jinja2 import Environment, FileSystemLoader, select_autoescape
|
| 25 | -from litestar.testing import TestClient as LitestarTestClient
|
| 26 | from starlette.responses import HTMLResponse
|
| 27 | from starlette.testclient import TestClient
|
| 28 |
|
| 29 | @@ -19,21 +15,6 @@ from jinja2_fragments.flask import render_block as flask_render_block
|
| 30 | from jinja2_fragments.flask import render_blocks as flask_render_blocks
|
| 31 | from jinja2_fragments.quart import render_block as quart_render_block
|
| 32 | from jinja2_fragments.quart import render_blocks as quart_render_blocks
|
| 33 | -from jinja2_fragments.sanic import render as sanic_render
|
| 34 | -
|
| 35 | -# fmt: off
|
| 36 | -# Needed for type hints because we are using `from __future__ import annotations`
|
| 37 | -# to support Python <3.10. See
|
| 38 | -# https://stackoverflow.com/questions/66734640/any-downsides-to-using-from-future-import-annotations-everywhere
|
| 39 | -# for shortcomings of using the annotations import,
|
| 40 | -try:
|
| 41 | - # litestar>=2.13.0
|
| 42 | - from litestar.plugins.htmx import HTMXRequest # noqa isort: skip
|
| 43 | -except ImportError:
|
| 44 | - # litestar<2.13.0
|
| 45 | - from litestar.contrib.htmx.request import HTMXRequest # noqa isort: skip
|
| 46 | -from litestar.response import Template # noqa isort: skip
|
| 47 | -# fmt: on
|
| 48 |
|
| 49 | NAME = "Guido"
|
| 50 | LUCKY_NUMBER = "42"
|
| 51 | --
|
| 52 | 2.52.0
|
| 53 |
|