Skip to content

Commit

Permalink
credentials changed to env variables for gcs
Browse files Browse the repository at this point in the history
  • Loading branch information
the-non-expert committed Sep 2, 2023
1 parent 88f0a03 commit 452f0da
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/collector_tests/test_gcs_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
from querent.common.uri import Uri
from querent.config.collector_config import CollectorBackend
import pytest
import os

credentials_info = os.environ.get('GOOGLE_APPLICATION_CREDENTIALS')
bucket_name = os.environ.get("GOOGLE_BUCKET_NAME")


@pytest.fixture
def gcs_config():
return {
"bucket": "bucket_name",
"credentials_path": "/Users/ayushjunjhunwala/querent-local/querent-ai/querent/config/protean-tooling-368008-8b160be0bb98.json",
"bucket": bucket_name,
"credentials_path": credentials_info
}


Expand Down

0 comments on commit 452f0da

Please sign in to comment.