Skip to content

Commit

Permalink
Added pgpass file for test database authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonzhu09 committed Jun 18, 2024
1 parent d83baa5 commit 640547f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 46 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/test_django_api.yaml

This file was deleted.

6 changes: 6 additions & 0 deletions .github/workflows/test_evagram_input.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ jobs:
- name: Install Dependencies
run: pip install . -r requirements.txt

- name: Create PGPASS File
run: |
echo 127.0.0.1:5432:test_evagram:postgres:${{secrets.DB_PASSWORD}} >> ~/.pgpass
chmod 600 ~/.pgpass
export PGPASSFILE='/home/runner/.pgpass'
- name: Run Evagram Input Tests
run: python src/evagram/website/backend/manage.py test input_app.test_input_tool
env:
Expand Down
3 changes: 0 additions & 3 deletions .prettierrc

This file was deleted.

3 changes: 1 addition & 2 deletions src/evagram/website/backend/input_app/test_input_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ def test_ExperimentPathNotFound(self):

def test_RollbackOnException(self):
with self.assertRaises(Exception):
input_data(
owner="postgres", experiment="bad_experiment", eva_directory="tests/dummy")
input_data(owner="postgres", experiment="bad_experiment", eva_directory="tests/dummy")

owner = Owners.objects.get(username="postgres")
experiments = Experiments.objects.filter(experiment_name="bad_experiment", owner=owner)
Expand Down

0 comments on commit 640547f

Please sign in to comment.