Skip to content

Commit 8d1e3c5

Browse files
committedApr 12, 2024
Add automated test for rest-api
1 parent bfb338e commit 8d1e3c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎tests/test_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def test_prompt_to_image_bytes_get_redirect(self):
103103
"prompt": "Jay Z performing",
104104
},
105105
)
106-
self.assertEqual(resp.status_code, status.HTTP_307_TEMPORARY_REDIRECT)
106+
self.assertEqual(resp.status_code, status.HTTP_200_OK)
107107
self.assertIn("https://image.pollinations.ai/", resp.url)
108108

109109

0 commit comments

Comments
 (0)