Skip to content

Commit 8b6d479

Browse files
Remove unused tests
1 parent 752c3a1 commit 8b6d479

File tree

4 files changed

+1368
-649
lines changed

4 files changed

+1368
-649
lines changed

create_test_instance.py

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

1515
import os
16+
from google.api_core.exceptions import AlreadyExists
1617

1718
from google.cloud.spanner_v1 import Client
1819

@@ -29,5 +30,8 @@
2930
config = f"{client.project_name}/instanceConfigs/regional-us-central1"
3031

3132
instance = client.instance("google-cloud-django-backend-tests", config)
32-
created_op = instance.create()
33-
created_op.result(30) # block until completion
33+
try:
34+
created_op = instance.create()
35+
created_op.result(30) # block until completion
36+
except AlreadyExists:
37+
print("Instance already exists... Skipping creation")

0 commit comments

Comments
 (0)