We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c8e1ab1 + 3ab1e58 commit 3f93782Copy full SHA for 3f93782
1 file changed
mock_tests/test_collection.py
@@ -94,14 +94,14 @@ def handler(request: Request) -> Response:
94
weaviate_auth_mock.expect_request("/v1/schema").respond_with_handler(handler)
95
96
with pytest.warns(UserWarning) as recwarn:
97
- weaviate.connect_to_local(
+ with weaviate.connect_to_local(
98
port=MOCK_PORT,
99
host=MOCK_IP,
100
grpc_port=MOCK_PORT_GRPC,
101
headers={header_name: "Bearer " + bearer_token},
102
auth_credentials=wvc.init.Auth.api_key("key"),
103
- )
104
- assert str(recwarn[0].message).startswith("Auth004")
+ ) as _:
+ assert str(recwarn[0].message).startswith("Auth004")
105
106
107
def test_auth_header_with_catchall_proxy(
0 commit comments