Skip to content

Commit

Permalink
fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav274 committed Oct 16, 2023
1 parent c84e0d7 commit a4276ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit_tests/test_dalle.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def setUp(self) -> None:
def tearDown(self) -> None:
execute_query_fetch_all(self.evadb, "DROP TABLE IF EXISTS ImageGen;")

@patch.dict("os.environ", {"OPENAI_KEY": "mocked_openai_key"})
@patch.dict("os.environ", {"OPENAI_API_KEY": "mocked_openai_key"})
@patch("requests.get")
@patch("openai.Image.create", return_value={"data": [{"url": "mocked_url"}]})
def test_dalle_image_generation(self, mock_openai_create, mock_requests_get):
Expand Down

0 comments on commit a4276ae

Please sign in to comment.