Skip to content

Commit

Permalink
Merge branch 'new-service' of https://github.com/communitiesuk/fundin…
Browse files Browse the repository at this point in the history
…g-service-design-self-serve into new-service

rebase
  • Loading branch information
Tiny49 committed Jul 18, 2024
2 parents cda551e + 6cdb8ba commit 8f6e781
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/copilot_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ jobs:
pre_deploy_tests:
uses: communitiesuk/funding-service-design-workflows/.github/workflows/pre-deploy.yml@main
with:
postgres_unit_testing: false
postgres_unit_testing: true
db_name: fab_unit_test

paketo_build:
needs: [ setup ]
Expand Down
5 changes: 4 additions & 1 deletion config/envs/unit_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import logging
from os import getenv

from fsd_utils import configclass

Expand All @@ -11,4 +12,6 @@ class UnitTestConfig(Config):
# Logging
FSD_LOG_LEVEL = logging.DEBUG

SQLALCHEMY_DATABASE_URI = "postgresql://postgres:password@fab-db:5432/fab_unit_test" # pragma: allowlist secret
SQLALCHEMY_DATABASE_URI = getenv(
"DATABASE_URL", "postgresql://postgres:[email protected]:5432/fab_unit_test" # pragma: allowlist secret
)

0 comments on commit 8f6e781

Please sign in to comment.