Skip to content

Commit 7905e56

Browse files
authored
chore: add temporary use of storage to check if auth is working correctly.
1 parent 346b82a commit 7905e56

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

background/app/main_test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
import uuid
1717

1818
import google.auth
19-
from google.cloud import firestore
20-
from google.cloud import pubsub
19+
from google.cloud import firestore, pubsub, storage
2120
import main
2221
import pytest
2322

@@ -38,8 +37,11 @@ def clear_collection(collection):
3837
"""
3938
for doc in collection.stream():
4039
doc.reference.delete()
40+
bucket_name = 'system-test-bucket'
4141

4242
client = firestore.Client()
43+
storage_client = storage.Client()
44+
bucket = storage_client.bucket(bucket_name)
4345
translations = client.collection("translations")
4446
clear_collection(translations)
4547
translations.add(

0 commit comments

Comments
 (0)