Skip to content

Commit 7154a72

Browse files
committed
test: add skipped tests for images.edit() and images.create_variation()
Addresses Greptile review feedback: - Added test stubs for edit() and create_variation() methods - Documented that create_variation() has no prompt (input is None) - Tests skipped as they require DALL-E 2 API and image file setup - Core tracking functionality is tested via images.generate()
1 parent ff0605b commit 7154a72

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

tests/test_openai.py

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1659,3 +1659,38 @@ async def test_openai_image_generation_async(openai):
16591659
assert generation_data.input == "A sunset over mountains"
16601660
assert generation_data.type == "GENERATION"
16611661
assert "dall-e-3" in generation_data.model
1662+
1663+
1664+
@pytest.mark.skip(reason="Requires DALL-E 2 and image file setup; core tracking tested via generate()")
1665+
def test_openai_image_edit(openai):
1666+
"""Test that image edit calls are tracked in Langfuse.
1667+
1668+
Note: images.edit() accepts a prompt parameter which is tracked as input.
1669+
Skipped by default as it requires DALL-E 2 API access and PNG image files.
1670+
"""
1671+
pass
1672+
1673+
1674+
@pytest.mark.skip(reason="Requires DALL-E 2 and image file setup; core tracking tested via generate()")
1675+
def test_openai_image_create_variation(openai):
1676+
"""Test that image variation calls are tracked in Langfuse.
1677+
1678+
Note: images.create_variation() does NOT accept a prompt parameter,
1679+
so input will be None. This is expected behavior - the method only
1680+
takes an image file as input, which is not captured as text input.
1681+
"""
1682+
pass
1683+
1684+
1685+
@pytest.mark.skip(reason="Requires DALL-E 2 and image file setup; core tracking tested via generate()")
1686+
@pytest.mark.asyncio
1687+
async def test_openai_image_edit_async(openai):
1688+
"""Test that async image edit calls are tracked in Langfuse."""
1689+
pass
1690+
1691+
1692+
@pytest.mark.skip(reason="Requires DALL-E 2 and image file setup; core tracking tested via generate()")
1693+
@pytest.mark.asyncio
1694+
async def test_openai_image_create_variation_async(openai):
1695+
"""Test that async image variation calls are tracked in Langfuse."""
1696+
pass

0 commit comments

Comments
 (0)