Skip to content

Commit

Permalink
Fix tox
Browse files Browse the repository at this point in the history
  • Loading branch information
dbernstein committed Oct 23, 2024
1 parent 0f19917 commit d69aeea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ docker =
docker: minio-vlc
setenv =
COVERAGE_FILE = .coverage.{envname}
PG_SSL_MODE = allow

allowlist_externals =
poetry

Expand All @@ -27,11 +29,12 @@ allowlist_externals =
coverage

[docker:db-vlc]
image = postgres:12
image = postgres:16
environment =
POSTGRES_USER=vlc
POSTGRES_PASSWORD=test
POSTGRES_DB=test_virtual_library_card_dev

expose =
VLC_DEV_DB_PORT=5432/tcp
host_var =
Expand Down
2 changes: 1 addition & 1 deletion virtual_library_card/settings/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"PASSWORD": "test",
"HOST": os.environ.get("VLC_DEV_DB_HOST", "pg"),
"PORT": os.environ.get("VLC_DEV_DB_PORT", "5432"),
"OPTIONS": {"sslmode": "require"},
"OPTIONS": {"sslmode": os.environ.get("PG_SSL_MODE", "require")},
}
}

Expand Down

0 comments on commit d69aeea

Please sign in to comment.