Skip to content

Commit

Permalink
[DERCBOT-1037] TU WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
assouktim committed Oct 25, 2024
1 parent fa09068 commit b4d3894
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,10 @@ async def test_rag_chain(
# Call function
await execute_rag_chain(query, debug=True)

# Assert that the given observability_setting is used
mocked_get_callback_handler_factory.assert_called_once_with(
setting=query.observability_setting
)
# Assert LangChain qa chain is created using the expected settings from query

# Assert qa chain is ainvoke()d with the expected settings from query
mocked_chain.ainvoke.assert_called_once_with(
input=inputs,
Expand All @@ -159,6 +158,7 @@ async def test_rag_chain(
),
debug=mocked_rag_debug_data(query, mocked_rag_answer, mocked_callback, 1),
)
# Assert the rag guard is called
mocked_rag_guard.assert_called_once_with(
inputs, response
)
Expand Down

0 comments on commit b4d3894

Please sign in to comment.