Skip to content

Commit f464fcf

Browse files
committed
Fix tests with httpx 0.28.1
1 parent cf15efe commit f464fcf

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

integration/test_tenants.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,18 @@
2222
from weaviate.exceptions import WeaviateInvalidInputError, WeaviateUnsupportedFeatureError
2323

2424

25-
def test_shards_on_tenants(client_factory: ClientFactory, collection_factory: CollectionFactory):
25+
def test_shards_on_tenants(
26+
client_factory: ClientFactory, collection_factory: CollectionFactory
27+
) -> None:
2628
collection = collection_factory(
2729
vectorizer_config=Configure.Vectorizer.none(),
2830
multi_tenancy_config=Configure.multi_tenancy(enabled=True),
2931
)
3032
collection.tenants.create(Tenant(name="tenant1"))
3133
client = client_factory()
32-
count = sum(
33-
len(node.shards) for node in client.cluster.nodes(collection.name, output="verbose")
34-
)
34+
35+
nodes = client.cluster.nodes(collection.name, output="verbose")
36+
count = sum(len(node.shards) for node in nodes)
3537

3638
assert count == 1
3739

weaviate/connect/v4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ async def get(
568568
return await self.__send(
569569
"GET",
570570
url=self.url + self._api_version_path + path,
571-
params=params if params is not None else {},
571+
params=params,
572572
error_msg=error_msg,
573573
status_codes=status_codes,
574574
)

0 commit comments

Comments
 (0)