Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P1184
(An Untitled Masterwork)
Active
Public
Actions
Authored by
douardda
on Sep 29 2021, 4:19 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
# in swh/web/tests/conftest/py
@pytest.fixture(scope='session')
def django_db_modify_db_settings(django_db_modify_db_settings_parallel_suffix, postgresql_proc):
from django.conf import settings as django_settings
django_settings.DATABASES['default'].update({
'ENGINE': 'django.db.backends.postgresql',
'HOST': postgresql_proc.host,
'PORT': postgresql_proc.port,
'USER': postgresql_proc.user,
'NAME': postgresql_proc.dbname,
})
Event Timeline
douardda
created this paste.
Sep 29 2021, 4:19 PM
2021-09-29 16:19:00 (UTC+2)
Log In to Comment