Skip to content

Commit 363f351

Browse files
committed
format
1 parent b87d7bb commit 363f351

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

tests/smoketests/test_blueprints.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ def test_create_blueprint_and_await_build(client: Runloop) -> None:
4646
def test_start_devbox_from_base_blueprint_by_id(client: Runloop) -> None:
4747
assert _blueprint_id
4848
devbox = None
49-
try:
49+
try:
5050
devbox = client.devboxes.create_and_await_running(
51-
blueprint_id=_blueprint_id,
52-
polling_config=PollingConfig(max_attempts=120, interval_seconds=5.0, timeout_seconds=20 * 60),
53-
)
51+
blueprint_id=_blueprint_id,
52+
polling_config=PollingConfig(max_attempts=120, interval_seconds=5.0, timeout_seconds=20 * 60),
53+
)
5454
assert devbox.blueprint_id == _blueprint_id
5555
assert devbox.status == "running"
5656
finally:
@@ -61,7 +61,7 @@ def test_start_devbox_from_base_blueprint_by_id(client: Runloop) -> None:
6161
@pytest.mark.timeout(30)
6262
def test_start_devbox_from_base_blueprint_by_name(client: Runloop) -> None:
6363
devbox = None
64-
try:
64+
try:
6565
devbox = client.devboxes.create_and_await_running(
6666
blueprint_name=_blueprint_name,
6767
polling_config=PollingConfig(max_attempts=120, interval_seconds=5.0, timeout_seconds=20 * 60),
@@ -76,13 +76,13 @@ def test_start_devbox_from_base_blueprint_by_name(client: Runloop) -> None:
7676
@pytest.mark.timeout(60)
7777
def test_create_blueprint_with_secret_and_await_build(client: Runloop) -> None:
7878
bpt = None
79-
try:
79+
try:
8080
bpt = client.blueprints.create(
8181
name=unique_name("bp-secrets"),
8282
dockerfile=(
8383
"FROM runloop:runloop/starter-arm64\n"
8484
"ARG GITHUB_TOKEN\n"
85-
"RUN git config --global credential.helper '!f() { echo \"username=x-access-token\"; echo \"password=$GITHUB_TOKEN\"; }; f' "
85+
'RUN git config --global credential.helper \'!f() { echo "username=x-access-token"; echo "password=$GITHUB_TOKEN"; }; f\' '
8686
"&& git clone https://github.com/runloopai/runloop-fe.git /workspace/runloop-fe "
8787
"&& git config --global --unset credential.helper\n"
8888
"WORKDIR /workspace/runloop-fe"
@@ -97,6 +97,6 @@ def test_create_blueprint_with_secret_and_await_build(client: Runloop) -> None:
9797
assert completed.status == "build_complete"
9898
assert completed.parameters.secrets is not None
9999
assert completed.parameters.secrets.get("GITHUB_TOKEN") == "GITHUB_TOKEN_FOR_SMOKETESTS"
100-
finally:
100+
finally:
101101
if bpt:
102102
client.blueprints.delete(bpt.id)

tests/smoketests/test_snapshots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def test_snapshot_devbox(client: Runloop) -> None:
4949
def test_launch_devbox_from_snapshot(client: Runloop) -> None:
5050
assert _snapshot_id
5151
launched = None
52-
try:
52+
try:
5353
launched = client.devboxes.create_and_await_running(
5454
snapshot_id=_snapshot_id,
5555
polling_config=PollingConfig(max_attempts=120, interval_seconds=5.0, timeout_seconds=20 * 60),

0 commit comments

Comments
 (0)