Skip to content

Commit

Permalink
var from env to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ychiucco committed Sep 18, 2024
1 parent a35450c commit f1e113c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ jobs:
- name: Test with pytest
env:
COVERAGE_FILE: coverage-data-${{ matrix.python-version }}
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: fractal_client_test
run: poetry run coverage run -m pytest

- name: Upload coverage data
Expand Down
6 changes: 2 additions & 4 deletions tests/fixtures_testserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@ def override_server_settings(tmp_path):

settings = Settings()

tmp_db_path = tmp_path / "db/test.db"
tmp_db_path.parent.mkdir()

settings.DB_ENGINE = "postgres-psycopg"
settings.POSTGRES_DB = "fractal_client_test"
settings.POSTGRES_USER = "postgres"
settings.POSTGRES_PASSWORD = "postgres"

settings.SQLITE_PATH = tmp_db_path
settings.FRACTAL_RUNNER_BACKEND = "local"

settings.JWT_SECRET_KEY = "secret_key"
Expand Down

0 comments on commit f1e113c

Please sign in to comment.