Skip to content

Commit de5b18f

Browse files
committed
.
1 parent 46c2a80 commit de5b18f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_database.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,7 @@ def django_db_createdb(request, django_db_createdb) -> bool:
522522
db_name = f'test_{django_settings.DATABASES["default"]["NAME"]}'
523523
if xdist_suffix := getattr(request.config, 'workerinput', {}).get('workerid'):
524524
db_name = f'{db_name}_{xdist_suffix}'
525+
print(run_sql(query="SELECT * FROM pg_available_extensions;", fetch=True))
525526
db_exists = (result := run_sql(query=f"SELECT EXISTS (SELECT 1 FROM pg_database WHERE datname='{db_name}')", fetch=True)) and result and result[0]
526527
if django_db_createdb or not db_exists:
527528
run_sql('CREATE EXTENSION IF NOT EXISTS postgis')

0 commit comments

Comments
 (0)