Skip to content

Commit

Permalink
dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
hagen-danswer committed Nov 4, 2024
1 parent cd9ead8 commit b797a9f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 308 deletions.
306 changes: 0 additions & 306 deletions backend/danswer/connectors/google_drive/mid_connector.py

This file was deleted.

5 changes: 3 additions & 2 deletions backend/tests/daily/connectors/gmail/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ def google_gmail_oauth_connector_factory() -> Callable[..., GmailConnector]:
def _connector_factory(
primary_admin_email: str = "[email protected]",
) -> GmailConnector:
print("Creating GmailConnector with OAuth credentials")
connector = GmailConnector()

json_string = os.environ["GOOGLE_GMAIL_OAUTH_CREDENTIALS_JSON_STR"]
refried_json_string = json.loads(parse_credentials(json_string))
refried_json_string = json.dumps(parse_credentials(json_string))

credentials_json = {
DB_CREDENTIALS_DICT_TOKEN_KEY: refried_json_string,
Expand All @@ -89,7 +90,7 @@ def _connector_factory(
connector = GmailConnector()

json_string = os.environ["GOOGLE_GMAIL_SERVICE_ACCOUNT_JSON_STR"]
refried_json_string = json.loads(parse_credentials(json_string))
refried_json_string = json.dumps(parse_credentials(json_string))

# Load Service Account Credentials
connector.load_credentials(
Expand Down
1 change: 1 addition & 0 deletions backend/tests/daily/connectors/google_drive/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def _connector_factory(
my_drive_emails: str | None = None,
shared_folder_urls: str | None = None,
) -> GoogleDriveConnector:
print("Creating GoogleDriveConnector with OAuth credentials")
connector = GoogleDriveConnector(
include_shared_drives=include_shared_drives,
shared_drive_urls=shared_drive_urls,
Expand Down

0 comments on commit b797a9f

Please sign in to comment.