Skip to content

Commit 6f083d8

Browse files
committed
debug: project
1 parent 663c3fc commit 6f083d8

File tree

1 file changed

+5
-2
lines changed
  • appengine/standard_python3/bundled-services/blobstore/django

1 file changed

+5
-2
lines changed

appengine/standard_python3/bundled-services/blobstore/django/main_test.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414

1515
import json
16+
import os
1617
import re
1718
import subprocess
1819
import uuid
@@ -21,6 +22,7 @@
2122
import pytest
2223
import requests
2324

25+
project_id = os.environ["GOOGLE_CLOUD_PROJECT"]
2426

2527
@backoff.on_exception(backoff.expo, Exception, max_tries=3)
2628
def gcloud_cli(command):
@@ -37,7 +39,7 @@ def gcloud_cli(command):
3739
3840
Raises Exception with the stderr output of the last attempt on failure.
3941
"""
40-
full_command = f"gcloud {command} --quiet --format=json"
42+
full_command = f"gcloud {command} --quiet --format=json --project {project_id}"
4143
print("Running command:", full_command)
4244

4345
try:
@@ -89,7 +91,8 @@ def version():
8991
wait_for_app(f"https://{version_hostname}/")
9092
yield project_id, version_id
9193
finally:
92-
gcloud_cli(f"app versions delete {version_id}")
94+
#gcloud_cli(f"app versions delete {version_id}")
95+
pass
9396

9497

9598
def test_upload_and_view(version):

0 commit comments

Comments
 (0)