Co-authored-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
parent
2da63654e5
commit
b035c02f78
155 changed files with 4279 additions and 5925 deletions
|
|
@ -10,14 +10,12 @@ def test_validate_provider_credentials():
|
|||
provider = SparkProvider()
|
||||
|
||||
with pytest.raises(CredentialsValidateFailedError):
|
||||
provider.validate_provider_credentials(
|
||||
credentials={}
|
||||
)
|
||||
provider.validate_provider_credentials(credentials={})
|
||||
|
||||
provider.validate_provider_credentials(
|
||||
credentials={
|
||||
'app_id': os.environ.get('SPARK_APP_ID'),
|
||||
'api_secret': os.environ.get('SPARK_API_SECRET'),
|
||||
'api_key': os.environ.get('SPARK_API_KEY')
|
||||
"app_id": os.environ.get("SPARK_APP_ID"),
|
||||
"api_secret": os.environ.get("SPARK_API_SECRET"),
|
||||
"api_key": os.environ.get("SPARK_API_KEY"),
|
||||
}
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue