Skip to content

Commit 2157f7d

Browse files
committed
fix up a little more to prepare for squash
1 parent a369a57 commit 2157f7d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/test_db_setup.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,10 @@ def test_xdist_with_reuse(django_testdir):
162162
def _check(settings, worker_id):
163163
# Make sure that the database name looks correct
164164
db_name = settings.DATABASES['default']['NAME']
165-
assert db_name.startswith('test_pytest_django')
166-
assert db_name.endswith("_{}".format(worker_id))
167-
165+
assert db_name == (
166+
'test_pytest_django_should_never_get_accessed_inner_inner_{}'
167+
.format(worker_id)
168+
)
168169
assert Item.objects.count() == 0
169170
Item.objects.create(name='foo')
170171
assert Item.objects.count() == 1

tox.ini

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ deps =
3232
pytest41: pytest>=4.1,<4.2
3333
pytest41: attrs==17.4.0
3434
xdist: pytest-xdist>=1.15
35-
xdist: pytest<5.3.4
3635

3736
setenv =
3837
PYTHONPATH = {toxinidir}:{env:PYTHONPATH:}

0 commit comments

Comments
 (0)