Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,5 @@ version_toml = ["pyproject.toml:project.version"]
parse_squash_commits = false

[tool.uv]
# TODO: put `exclude-newer` back to 2 weeks when possible
exclude-newer = "5 days" # Reduce risks of supply chain attacks
exclude-newer = "2 weeks" # Reduce risks of supply chain attacks
required-version = ">=0.10.0,<0.11.0"
38 changes: 18 additions & 20 deletions tests/unit_tests/test_search_retriever.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,17 @@ def test_get_relevant_document(mocker: MockerFixture, linkup_api_key: str) -> No
"linkup.LinkupClient._request",
return_value=Response(
status_code=200,
content=b"""
{
json={
"results": [
{
"type": "text",
"name": "foo",
"url": "http://foo",
"content": "foo"
}
{
"type": "text",
"name": "foo",
"url": "http://foo",
"favicon": "http://foo/favicon.ico",
"content": "foo",
}
]
}
""",
},
),
)

Expand All @@ -44,18 +43,17 @@ async def test_aget_relevant_documents(mocker: MockerFixture, linkup_api_key: st
"linkup.LinkupClient._async_request",
return_value=Response(
status_code=200,
content=b"""
{
json={
"results": [
{
"type": "text",
"name": "foo",
"url": "http://foo",
"content": "foo"
}
{
"type": "text",
"name": "foo",
"url": "http://foo",
"favicon": "http://foo/favicon.ico",
"content": "foo",
}
]
}
""",
},
),
)

Expand Down
Loading
Loading