Skip to content

Commit

Permalink
Fix lint in e2e tests (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbornet authored Dec 1, 2023
1 parent 89f6c2d commit 45471c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def test_web_based_loader():
assert "0.1.0 - Oct 4, 2023" in doc1.page_content
assert doc1.metadata == {
"source": "https://langstream.ai/changelog/",
"title": "LangStream Changelog | LangStream: an Event-Driven Developer Platform for LLM Apps", # noqa
"title": "LangStream Changelog | LangStream: an Event-Driven Developer Platform for LLM Apps", # noqa: E501
"description": "Notes from releases",
"language": "en",
}
Expand Down
4 changes: 2 additions & 2 deletions ragstack-e2e-tests/e2e_tests/test_astra.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def test_basic_metadata_filtering(environment):
print("Error:", e)
if "UNSUPPORTED_FILTER_OPERATION" not in e.args[0]:
pytest.fail(
f"Should have thrown ValueError with UNSUPPORTED_FILTER_OPERATION but it was {e}"
f"Should have thrown ValueError with UNSUPPORTED_FILTER_OPERATION but it was {e}" # noqa: E501
)

# This looks very ugly, but it's the only way to get the error message
Expand All @@ -191,7 +191,7 @@ def test_basic_metadata_filtering(environment):
)
else:
pytest.fail(
f"Should have thrown ValueError with UNSUPPORTED_FILTER_OPERATION but it was {e}"
f"Should have thrown ValueError with UNSUPPORTED_FILTER_OPERATION but it was {e}" # noqa: E501
)


Expand Down

0 comments on commit 45471c0

Please sign in to comment.