Skip to content

Commit

Permalink
expect a str that contains dict of secrets from env (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
eastandwestwind authored Feb 17, 2022
1 parent a321ff6 commit fab51b3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/fixtures/bigquery_fixtures.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import ast
import logging
import os
from typing import Generator, List, Dict
Expand Down Expand Up @@ -76,9 +77,9 @@ def bigquery_test_engine() -> Generator:
)

# Pulling from integration config file or GitHub secrets
keyfile_creds = integration_config.get("bigquery", {}).get("keyfile_creds") or os.environ.get(
keyfile_creds = integration_config.get("bigquery", {}).get("keyfile_creds") or ast.literal_eval(os.environ.get(
"BIGQUERY_KEYFILE_CREDS"
)
))
dataset = integration_config.get("bigquery", {}).get(
"dataset"
) or os.environ.get("BIGQUERY_DATASET")
Expand Down

0 comments on commit fab51b3

Please sign in to comment.