Skip to content
Merged
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
6 changes: 3 additions & 3 deletions mock_tests/test_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@ def handler(request: Request) -> Response:
weaviate_auth_mock.expect_request("/v1/schema").respond_with_handler(handler)

with pytest.warns(UserWarning) as recwarn:
weaviate.connect_to_local(
with weaviate.connect_to_local(
port=MOCK_PORT,
host=MOCK_IP,
grpc_port=MOCK_PORT_GRPC,
headers={header_name: "Bearer " + bearer_token},
auth_credentials=wvc.init.Auth.api_key("key"),
)
assert str(recwarn[0].message).startswith("Auth004")
) as _:
assert str(recwarn[0].message).startswith("Auth004")


def test_auth_header_with_catchall_proxy(
Expand Down