mirror of
https://github.com/langgenius/dify.git
synced 2026-09-08 02:43:49 +08:00
[autofix.ci] apply automated fixes
This commit is contained in:
parent
43e4e161b5
commit
449d30e57c
@ -184,8 +184,13 @@ class TestBatchCreateEdgeCases:
|
|||||||
mock_redis.get.return_value = None
|
mock_redis.get.return_value = None
|
||||||
|
|
||||||
result = TidbService.batch_create_tidb_serverless_cluster(
|
result = TidbService.batch_create_tidb_serverless_cluster(
|
||||||
batch_size=1, project_id="proj", api_url="url", iam_url="iam",
|
batch_size=1,
|
||||||
public_key="pub", private_key="priv", region="us-east-1",
|
project_id="proj",
|
||||||
|
api_url="url",
|
||||||
|
iam_url="iam",
|
||||||
|
public_key="pub",
|
||||||
|
private_key="priv",
|
||||||
|
region="us-east-1",
|
||||||
)
|
)
|
||||||
|
|
||||||
assert len(result) == 0
|
assert len(result) == 0
|
||||||
@ -203,6 +208,11 @@ class TestBatchCreateEdgeCases:
|
|||||||
|
|
||||||
with pytest.raises(Exception, match="HTTP 500"):
|
with pytest.raises(Exception, match="HTTP 500"):
|
||||||
TidbService.batch_create_tidb_serverless_cluster(
|
TidbService.batch_create_tidb_serverless_cluster(
|
||||||
batch_size=1, project_id="proj", api_url="url", iam_url="iam",
|
batch_size=1,
|
||||||
public_key="pub", private_key="priv", region="us-east-1",
|
project_id="proj",
|
||||||
|
api_url="url",
|
||||||
|
iam_url="iam",
|
||||||
|
public_key="pub",
|
||||||
|
private_key="priv",
|
||||||
|
region="us-east-1",
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user