mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-02-02 12:54:28 +01:00
test: fix test_huggingface_fail_request_with_delay
- Fix failing test_huggingface_fail_request_with_delay by adding mock API key to agent configuration.
This commit is contained in:
@@ -143,6 +143,7 @@ def test_huggingface_fail_request_with_delay(
|
||||
mock_post.return_value.text = return_text
|
||||
|
||||
agent.legacy_config.image_provider = "huggingface"
|
||||
agent.legacy_config.huggingface_api_token = "mock-api-key"
|
||||
agent.legacy_config.huggingface_image_model = image_model
|
||||
prompt = "astronaut riding a horse"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user