Skip to content

Commit

Permalink
test_langfuse_masked_input_output
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaan-jaff committed Nov 22, 2024
1 parent 027967d commit be0f0dd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/local_testing/test_alangfuse.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ async def test_langfuse_logging_without_request_response(stream, langfuse_client

@pytest.mark.asyncio
@pytest.mark.flaky(retries=4, delay=2)
async def test_langfuse_logging_audio_transcriptions():
async def test_langfuse_logging_audio_transcriptions(langfuse_client):
"""
Test that creates a trace with masked input and output
"""
Expand Down Expand Up @@ -353,8 +353,9 @@ async def test_langfuse_masked_input_output(langfuse_client):

assert trace.input == expected_input
assert trace.output == expected_output
assert generations[0].input == expected_input
assert generations[0].output == expected_output
if len(generations) > 0:
assert generations[0].input == expected_input
assert generations[0].output == expected_output


@pytest.mark.asyncio
Expand Down

0 comments on commit be0f0dd

Please sign in to comment.