Skip to content

Commit

Permalink
fix up a little more to prepare for squash
Browse files Browse the repository at this point in the history
  • Loading branch information
SalmonMode committed Jan 23, 2020
1 parent a369a57 commit 2157f7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 4 additions & 3 deletions tests/test_db_setup.py
Expand Up @@ -162,9 +162,10 @@ def test_xdist_with_reuse(django_testdir):
def _check(settings, worker_id):
# Make sure that the database name looks correct
db_name = settings.DATABASES['default']['NAME']
assert db_name.startswith('test_pytest_django')
assert db_name.endswith("_{}".format(worker_id))
assert db_name == (
'test_pytest_django_should_never_get_accessed_inner_inner_{}'
.format(worker_id)
)
assert Item.objects.count() == 0
Item.objects.create(name='foo')
assert Item.objects.count() == 1
Expand Down
1 change: 0 additions & 1 deletion tox.ini
Expand Up @@ -32,7 +32,6 @@ deps =
pytest41: pytest>=4.1,<4.2
pytest41: attrs==17.4.0
xdist: pytest-xdist>=1.15
xdist: pytest<5.3.4

setenv =
PYTHONPATH = {toxinidir}:{env:PYTHONPATH:}
Expand Down

0 comments on commit 2157f7d

Please sign in to comment.