Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit 84d2f16

Browse files
committed
Allow overriding Seam Connect image used
1 parent c378211 commit 84d2f16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
import pytest
23
from seamapi import Seam
34
import time
@@ -29,7 +30,7 @@ def seam_backend():
2930
with PostgresContainer("postgres:13", dbname="postgres") as pg:
3031
db_host = "host.docker.internal" if sys.platform == "darwin" else "172.17.0.1"
3132
db_url = f"postgresql://test:test@{db_host}:{pg.get_exposed_port(pg.port_to_expose)}/postgres"
32-
with DockerContainer("ghcr.io/seamapi/seam-connect").with_env(
33+
with DockerContainer(os.environ.get("SEAM_CONNECT_IMAGE", "ghcr.io/seamapi/seam-connect")).with_env(
3334
"DATABASE_URL",
3435
db_url,
3536
).with_env("POSTGRES_DATABASE", "postgres").with_env(

0 commit comments

Comments
 (0)