Skip to content

Commit

Permalink
👷 Use env for test pg config
Browse files Browse the repository at this point in the history
  • Loading branch information
dankolbman committed Jun 16, 2018
1 parent 9848b5e commit a50b103
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
environment:
- POSTGRES_USER=postgres
- POSTGRES_DB=test
- PG_USER=postgres
- PG_NAME=test

working_directory: ~/repo

Expand Down Expand Up @@ -48,6 +50,8 @@ jobs:
python-codacy-coverage -r coverage.xml
environment:
- FLASK_APP: "manage"
- PG_USER: "postgres"
- PG_NAME: "test"

- store_artifacts:
path: test-reports
Expand Down
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class TestingConfig(Config):
SERVER_NAME = "localhost"
TESTING = True
WTF_CSRF_ENABLED = False
SQLALCHEMY_DATABASE_URI = 'postgres://postgres@localhost:5432/test'
# SQLALCHEMY_DATABASE_URI = 'postgres://postgres@localhost:5432/test'
SQLALCHEMY_TRACK_MODIFICATIONS = True


Expand Down

0 comments on commit a50b103

Please sign in to comment.