Skip to content

Commit 163ad66

Browse files
committed
Disable secrets test if local dev
1 parent 156fade commit 163ad66

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/smoketests/test_blueprints.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
import os
34
from typing import Iterator
45

56
import pytest
@@ -74,6 +75,10 @@ def test_start_devbox_from_base_blueprint_by_name(client: Runloop) -> None:
7475

7576

7677
@pytest.mark.timeout(60)
78+
@pytest.mark.skipif(
79+
os.getenv("RUN_SMOKETESTS") != "1",
80+
reason="Skip blueprint secrets test in local testing (requires RUN_SMOKETESTS=1)",
81+
)
7782
def test_create_blueprint_with_secret_and_await_build(client: Runloop) -> None:
7883
bpt = None
7984
try:
@@ -89,7 +94,7 @@ def test_create_blueprint_with_secret_and_await_build(client: Runloop) -> None:
8994
),
9095
secrets={"GITHUB_TOKEN": "GITHUB_TOKEN_FOR_SMOKETESTS"},
9196
)
92-
# Wait for build to complete
97+
9398
completed = client.blueprints.await_build_complete(
9499
bpt.id,
95100
polling_config=PollingConfig(max_attempts=180, interval_seconds=5.0, timeout_seconds=30 * 60),

0 commit comments

Comments
 (0)