File: tests-Ignore-config-for-valkey-related-tests.patch

package info (click to toggle)
litestar 2.16.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 11,404 kB
  • sloc: python: 69,422; makefile: 137; javascript: 105; sh: 51
file content (50 lines) | stat: -rw-r--r-- 1,667 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
From: Carsten Schoenert <c.schoenert@t-online.de>
Date: Sat, 8 Mar 2025 12:55:02 +0200
Subject: tests: Ignore config for valkey related tests

The Python module valkey isn't packaged yet in Debian, also the needed
server part is provided within a Docker container which requires further
work to be usable while the package build or while running the CI.

The Python module of valkey can be found on:

https://github.com/valkey-io/valkey-py

Forwared: not-needed
---
 tests/conftest.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/conftest.py b/tests/conftest.py
index 91d88cc..1e05f37 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -18,8 +18,8 @@ from pytest_lazy_fixtures import lf
 from redis.asyncio import Redis as AsyncRedis
 from redis.client import Redis
 from time_machine import travel
-from valkey.asyncio import Valkey as AsyncValkey
-from valkey.client import Valkey
+#from valkey.asyncio import Valkey as AsyncValkey
+#from valkey.client import Valkey
 
 from litestar.logging import LoggingConfig
 from litestar.middleware.session import SessionMiddleware
@@ -31,7 +31,7 @@ from litestar.stores.base import Store
 from litestar.stores.file import FileStore
 from litestar.stores.memory import MemoryStore
 from litestar.stores.redis import RedisStore
-from litestar.stores.valkey import ValkeyStore
+#from litestar.stores.valkey import ValkeyStore
 from litestar.testing import RequestFactory
 from tests.helpers import not_none
 
@@ -55,7 +55,7 @@ if TYPE_CHECKING:
     )
 
 
-pytest_plugins = ["tests.docker_service_fixtures"]
+# pytest_plugins = ["tests.docker_service_fixtures"]
 
 
 @pytest.fixture