Skip to content

Commit b974a2d

Browse files
committed
Disable v2 integration tests by default
1 parent 9bd8428 commit b974a2d

File tree

5 files changed

+12
-3
lines changed

5 files changed

+12
-3
lines changed

graphdatascience/tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ def pytest_addoption(parser: Any) -> None:
1616
parser.addoption(
1717
"--include-cloud-architecture", action="store_true", help="include tests resuiring a cloud architecture setup"
1818
)
19+
parser.addoption("--include-integration-v2", action="store_true", help="include integration tests for v2")
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from typing import Any
2+
3+
import pytest
4+
5+
def pytest_collection_modifyitems(config: Any, items: Any) -> None:
6+
if not config.getoption("--include-integration-v2"):
7+
skip_v2 = pytest.mark.skip(reason="need --include-integration-v2 option to run")
8+
for item in items:
9+
item.add_marker(skip_v2)

graphdatascience/tests/integrationV2/procedure_surface/arrow/conftest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ def password_file() -> Generator[str, None, None]:
3030
@pytest.fixture(scope="session")
3131
def session_container(password_file: str) -> Generator[DockerContainer, None, None]:
3232
session_image = os.getenv(
33-
"GDS_SESSION_IMAGE",
34-
"europe-west1-docker.pkg.dev/aura-docker-images/aura/gds-session:97ac47f7928c0533b3099539f0f5b3058a52c203",
33+
"GDS_SESSION_IMAGE"
3534
)
3635

3736
if session_image is None:

requirements/dev/dev.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ enum-tools[sphinx] == 0.12.0
99
types-requests
1010
types-tqdm
1111
types-python-dateutil
12-
testcontainers >= 4.0

requirements/dev/test.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
pytest == 8.3.3
22
requests_mock == 1.11.0
33
pytest_mock == 3.12.0
4+
testcontainers >= 4.0

0 commit comments

Comments
 (0)