@@ -46,11 +46,11 @@ def test_create_blueprint_and_await_build(client: Runloop) -> None:
4646def 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 )
6262def 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 )
7777def 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 )
0 commit comments