Skip to content

Commit f6006c3

Browse files
committed
use other dockerfile version and fix tests
1 parent 889d09c commit f6006c3

4 files changed

Lines changed: 14 additions & 11 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.13-slim
1+
FROM public.ecr.aws/docker/library/python:3.13-slim
22

33
ARG COMPOSE_RUNNER_VERSION
44
ENV COMPOSE_RUNNER_VERSION=${COMPOSE_RUNNER_VERSION}

compose_runner/tests/conftest.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33

44
@pytest.fixture(scope="session")
55
def vcr_config():
6-
"""Configure VCR to decode compressed HTTP responses when recording."""
7-
return {"decode_compressed_response": True}
6+
"""Replay cassettes without live network dependency during routine test runs."""
7+
return {
8+
"decode_compressed_response": True,
9+
"record_mode": "none",
10+
}

compose_runner/tests/test_lambda_handlers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ def test_requires_large_task_false_when_method_differs():
3535
assert run_handler._requires_large_task(spec) is False
3636

3737

38-
@pytest.mark.vcr(record_mode="once")
38+
@pytest.mark.vcr(record_mode="none")
3939
def test_select_task_size_uses_large_for_montecarlo():
4040
task_size = run_handler._select_task_size("ZPSvyvhZAopz", "staging", "artifact-test")
4141
assert task_size == "large"
4242

4343

44-
@pytest.mark.vcr(record_mode="once")
44+
@pytest.mark.vcr(record_mode="none")
4545
def test_select_task_size_uses_standard_for_fdr():
4646
task_size = run_handler._select_task_size("VtFZJFniCKvG", "staging", "artifact-test")
4747
assert task_size == "standard"

compose_runner/tests/test_run.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from compose_runner import run as run_module
55
from compose_runner.run import Runner
66

7-
@pytest.mark.vcr(record_mode="once")
7+
@pytest.mark.vcr(record_mode="none")
88
def test_incorrect_id():
99
runner = Runner(
1010
meta_analysis_id="made_up_id",
@@ -15,7 +15,7 @@ def test_incorrect_id():
1515
runner.run_workflow()
1616

1717

18-
@pytest.mark.vcr(record_mode="once")
18+
@pytest.mark.vcr(record_mode="none")
1919
def test_download_bundle():
2020
runner = Runner(
2121
meta_analysis_id="3opENJpHxRsH",
@@ -27,7 +27,7 @@ def test_download_bundle():
2727
assert runner.cached_specification is not None
2828

2929

30-
@pytest.mark.vcr(record_mode="once")
30+
@pytest.mark.vcr(record_mode="none")
3131
def test_run_workflow():
3232
runner = Runner(
3333
meta_analysis_id="3opENJpHxRsH",
@@ -36,7 +36,7 @@ def test_run_workflow():
3636
runner.run_workflow(n_cores=2)
3737

3838

39-
@pytest.mark.vcr(record_mode="once")
39+
@pytest.mark.vcr(record_mode="none")
4040
def test_run_database_workflow():
4141
runner = Runner(
4242
meta_analysis_id="dRFtnAo9bhp3",
@@ -45,7 +45,7 @@ def test_run_database_workflow():
4545
runner.run_workflow()
4646

4747

48-
@pytest.mark.vcr(record_mode="once")
48+
@pytest.mark.vcr(record_mode="none")
4949
def test_run_group_comparison_workflow():
5050
runner = Runner(
5151
meta_analysis_id="4CGQSSyaoWN3",
@@ -54,7 +54,7 @@ def test_run_group_comparison_workflow():
5454
runner.run_workflow()
5555

5656

57-
@pytest.mark.vcr(record_mode="once")
57+
@pytest.mark.vcr(record_mode="none")
5858
def test_run_string_group_comparison_workflow():
5959
runner = Runner(
6060
meta_analysis_id="7joU2Siajs5X",

0 commit comments

Comments
 (0)