We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea242cf commit c99ff59Copy full SHA for c99ff59
tests/test_db_setup.py
@@ -162,7 +162,8 @@ def test_xdist_with_reuse(django_testdir):
162
def _check(settings, worker_id):
163
# Make sure that the database name looks correct
164
db_name = settings.DATABASES['default']['NAME']
165
- assert db_name == 'test_pytest_django_2000_inner_inner_{}'.format(worker_id)
+ assert db_name.startswith('test_pytest_django')
166
+ assert db_name.endswith("_{}".format(worker_id))
167
168
assert Item.objects.count() == 0
169
Item.objects.create(name='foo')
0 commit comments