Skip to content

Commit

Permalink
fix: fix test settings
Browse files Browse the repository at this point in the history
  • Loading branch information
zietzm committed Sep 9, 2024
1 parent 58546e6 commit eb21ccc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 64 deletions.
63 changes: 0 additions & 63 deletions src/webgwas_backend/test.py

This file was deleted.

7 changes: 6 additions & 1 deletion src/webgwas_backend/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,16 @@ def get_session_override():
@pytest.fixture
def client():
settings = Settings(
log_level="DEBUG",
dry_run=True,
s3_bucket="TEST",
s3_result_path="TEST",
sqlite_db=":memory:",
n_workers=2,
n_workers=1,
fit_quality_file=pathlib.Path(":memory:"),
root_data_directory=pathlib.Path(":memory:"),
indirect_gwas=IndirectGWASSettings(),
cache_capacity=1,
)
worker = TestWorker(settings)

Expand Down
1 change: 1 addition & 0 deletions src/webgwas_backend/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def __init__(self, settings: Settings):
self.s3_dry_run = settings.dry_run
self.s3_bucket = settings.s3_bucket
self.s3_result_path = settings.s3_result_path
self.root_data_directory = settings.root_data_directory
self.id_to_result: dict[str, WebGWASResult] = {}

def submit(self, request: WebGWASRequestID):
Expand Down

0 comments on commit eb21ccc

Please sign in to comment.