From 38f436aa6dedc913b41579a8a157e322db870cd3 Mon Sep 17 00:00:00 2001 From: Reinier van der Leer Date: Sat, 2 Dec 2023 13:15:23 +0100 Subject: [PATCH] test: fix test_huggingface_fail_request_with_delay - Fix failing test_huggingface_fail_request_with_delay by adding mock API key to agent configuration. --- autogpts/autogpt/tests/integration/test_image_gen.py | 1 + 1 file changed, 1 insertion(+) diff --git a/autogpts/autogpt/tests/integration/test_image_gen.py b/autogpts/autogpt/tests/integration/test_image_gen.py index c14d1c7c..28dedb9f 100644 --- a/autogpts/autogpt/tests/integration/test_image_gen.py +++ b/autogpts/autogpt/tests/integration/test_image_gen.py @@ -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"