Skip to content

Commit

Permalink
type annotations for clients
Browse files Browse the repository at this point in the history
  • Loading branch information
zliang-akamai committed Jul 10, 2024
1 parent bdb0862 commit 64e7b53
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/integration/models/object_storage/test_obj.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ def test_get_ssl_cert(bucket: ObjectStorageBucket):
assert not bucket.ssl_cert().ssl


def test_get_cluster(test_linode_client, bucket: ObjectStorageBucket):
def test_get_cluster(
test_linode_client: LinodeClient, bucket: ObjectStorageBucket
):
cluster = test_linode_client.load(ObjectStorageCluster, bucket.cluster)

assert "linodeobjects.com" in cluster.domain
Expand All @@ -123,7 +125,7 @@ def test_get_cluster(test_linode_client, bucket: ObjectStorageBucket):


def test_get_buckets_in_cluster(
test_linode_client, bucket: ObjectStorageBucket
test_linode_client: LinodeClient, bucket: ObjectStorageBucket
):
cluster = test_linode_client.load(ObjectStorageCluster, bucket.cluster)
assert any(bucket.id == b.id for b in cluster.buckets_in_cluster())

0 comments on commit 64e7b53

Please sign in to comment.