@@ -85,20 +85,7 @@ REDIS =
85
85
[testenv]
86
86
passenv = CI, GITHUB*
87
87
commands =
88
- {envpython} -m pytest --cov-report = --ds =settings.sqlite {posargs}
89
- {envpython} -m pytest --cov-append --cov-report = --ds =settings.sqlite_herd {posargs}
90
- {envpython} -m pytest --cov-append --cov-report = --ds =settings.sqlite_json {posargs}
91
- {envpython} -m pytest --cov-append --cov-report = --ds =settings.sqlite_lz4 {posargs}
92
- {envpython} -m pytest --cov-append --cov-report = --ds =settings.sqlite_msgpack {posargs}
93
- {envpython} -m pytest --cov-append --cov-report = --ds =settings.sqlite_sentinel {posargs}
94
- {envpython} -m pytest --cov-append --cov-report = --ds =settings.sqlite_sentinel_opts {posargs}
95
- {envpython} -m pytest --cov-append --cov-report = --ds =settings.sqlite_sharding {posargs}
96
- {envpython} -m pytest --cov-append --cov-report = --ds =settings.sqlite_usock {posargs}
97
- {envpython} -m pytest --cov-append --cov-report = --ds =settings.sqlite_zlib {posargs}
98
- {envpython} -m pytest --cov-append --cov-report = --ds =settings.sqlite_zstd {posargs}
99
- {envpython} -m pytest --cov-append --cov-report = --ds =settings.sqlite_gzip {posargs}
100
- {envpython} -m coverage report
101
- {envpython} -m coverage xml
88
+ {envpython} -m pytest -n 4 {posargs}
102
89
103
90
deps =
104
91
dj42: Django>=4.2,<5.0
@@ -108,9 +95,9 @@ deps =
108
95
msgpack>=0.6.0
109
96
pytest
110
97
pytest-cov
111
- pytest-django
112
- pytest-pythonpath
113
98
pytest-mock
99
+ pytest-pythonpath
100
+ pytest-xdist
114
101
redismaster: https://github.com/redis/redis-py/archive/master.tar.gz
115
102
lz4>=0.15
116
103
pyzstd>=0.15
@@ -119,7 +106,7 @@ deps =
119
106
basepython = python3
120
107
envdir ={toxworkdir}/lint
121
108
commands =
122
- black: black --target-version py36 {posargs:--check --diff} setup.py django_redis/ tests/
109
+ black: black --target-version py38 {posargs:--check --diff} setup.py django_redis/ tests/
123
110
ruff: ruff {posargs:check --show-fixes} django_redis/ tests/
124
111
mypy: mypy {posargs:--cobertura-xml-report .} django_redis tests
125
112
deps =
@@ -130,24 +117,16 @@ deps =
130
117
mypy
131
118
# typing dependencies
132
119
pytest
133
- pytest-django
134
120
pytest-mock
135
121
types-redis
136
122
skip_install = true
137
123
138
124
[tool:pytest]
139
- DJANGO_SETTINGS_MODULE = settings.sqlite
140
-
141
125
addopts =
142
126
--doctest-modules
143
127
--cov =django_redis
144
128
--cov-config =setup.cfg
145
129
--no-cov-on-fail
146
- filterwarnings =
147
- error::DeprecationWarning
148
- error::FutureWarning
149
- error::PendingDeprecationWarning
150
- ignore:.*distutils package is deprecated.*:DeprecationWarning
151
130
pythonpath = tests
152
131
testpaths = tests
153
132
xfail_strict = true
@@ -171,6 +150,9 @@ ignore_missing_settings = true
171
150
[mypy-lz4.frame]
172
151
ignore_missing_imports = true
173
152
153
+ [mypy-xdist.scheduler]
154
+ ignore_missing_imports = true
155
+
174
156
[mypy-pyzstd]
175
157
ignore_missing_imports = true
176
158
0 commit comments