File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 22
22
from weaviate .exceptions import WeaviateInvalidInputError , WeaviateUnsupportedFeatureError
23
23
24
24
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 :
26
28
collection = collection_factory (
27
29
vectorizer_config = Configure .Vectorizer .none (),
28
30
multi_tenancy_config = Configure .multi_tenancy (enabled = True ),
29
31
)
30
32
collection .tenants .create (Tenant (name = "tenant1" ))
31
33
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 )
35
37
36
38
assert count == 1
37
39
Original file line number Diff line number Diff line change @@ -568,7 +568,7 @@ async def get(
568
568
return await self .__send (
569
569
"GET" ,
570
570
url = self .url + self ._api_version_path + path ,
571
- params = params if params is not None else {} ,
571
+ params = params ,
572
572
error_msg = error_msg ,
573
573
status_codes = status_codes ,
574
574
)
You can’t perform that action at this time.
0 commit comments