-
Notifications
You must be signed in to change notification settings - Fork 534
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tried adding back some tests to see if it triggers the issue
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Copyright 2022 MosaicML LLM Foundry authors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import os | ||
import tempfile | ||
|
||
from pytest import fixture | ||
|
||
|
||
@fixture | ||
def gcs_account_credentials(): | ||
"""Mocked GCS Credentials for service level account.""" | ||
os.environ['GCS_KEY'] = '🗝️' | ||
os.environ['GCS_SECRET'] = '🤫' | ||
yield | ||
del os.environ['GCS_KEY'] | ||
del os.environ['GCS_SECRET'] | ||
|
||
|
||
@fixture | ||
def uc_account_credentials(): | ||
"""Mocked UC Credentials for service level account.""" | ||
os.environ['DATABRICKS_HOST'] = '⛵️' | ||
os.environ['DATABRICKS_TOKEN'] = '😶🌫️' | ||
yield | ||
del os.environ['DATABRICKS_HOST'] | ||
del os.environ['DATABRICKS_TOKEN'] | ||
|
||
|
||
@fixture | ||
def oci_temp_file(): | ||
"""Mocked OCI settings file.""" | ||
file = tempfile.NamedTemporaryFile() | ||
os.environ['OCI_CONFIG_FILE'] = file.name | ||
|
||
yield | ||
|
||
file.close() | ||
del os.environ['OCI_CONFIG_FILE'] |