tests: limit length of database name

This commit is contained in:
Frédéric Péters 2022-08-30 11:39:25 +02:00
parent 11310342cf
commit 973a0d13cb
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import tempfile
DATABASES = {
'default': {
'ENGINE': os.environ.get('DB_ENGINE', 'django.db.backends.postgresql_psycopg2'),
'NAME': 'combo-test-%s' % os.environ.get("BRANCH_NAME", "").replace('/', '-')[:45],
'NAME': 'combo-test-%s' % os.environ.get("BRANCH_NAME", "").replace('/', '-')[:35],
}
}