tests: use only 58 chars in database name, allowing _gwXX suffix

This commit is contained in:
Thomas NOËL 2022-07-28 12:30:54 +02:00
parent c5f130944b
commit 965d288227
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'TEST': {
'NAME': ('passerelle-test-%s' % os.environ.get("BRANCH_NAME", "").replace('/', '-'))[:63],
'NAME': ('passerelle-test-%s' % os.environ.get("BRANCH_NAME", "").replace('/', '-'))[:58],
},
}
}