Skip to content

Commit

Permalink
test: Remove languagetool mock
Browse files Browse the repository at this point in the history
  • Loading branch information
ReinderVosDeWael committed Jan 9, 2025
1 parent eeee281 commit da792b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
5 changes: 1 addition & 4 deletions tests/integration/test_text_corrections.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@

@pytest.fixture(scope="module")
def correcter() -> corrections.LanguageCorrecter:
"""Fixture for the LanguageCorrecter class.
The initialization is slow, so it is performed at the module level.
"""
"""Fixture for the LanguageCorrecter class."""
return corrections.LanguageCorrecter(
url="http://0.0.0.0:8010/v2",
enabled_rules=[
Expand Down
7 changes: 1 addition & 6 deletions tests/smoke/test_intake_writer_smoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,7 @@ async def intake_document(
"cloai.LargeLanguageModel.call_instructor",
return_value="instructor",
)
# LanguageTool is too hard on the Github CI and causes a test failure in
# this test.
mocker.patch(
"ctk_functions.text.corrections.LanguageCorrecter.correct",
side_effect=lambda x: x,
)

intake_info = parser.IntakeInformation(test_redcap_data)
intake_writer = writer.ReportWriter(intake_info, "gpt-4o")
await intake_writer.transform()
Expand Down

0 comments on commit da792b8

Please sign in to comment.