diff --git a/darwin/future/core/client.py b/darwin/future/core/client.py index 89cc71115..f2c7e9874 100644 --- a/darwin/future/core/client.py +++ b/darwin/future/core/client.py @@ -137,7 +137,7 @@ class ClientCore: def __init__( self, - config: DarwinConfig = DarwinConfig.local(), + config: DarwinConfig, retries: Optional[Retry] = None, ) -> None: self.config = config diff --git a/darwin/future/meta/objects/base.py b/darwin/future/meta/objects/base.py index 59c7ef01c..77eafcd7e 100644 --- a/darwin/future/meta/objects/base.py +++ b/darwin/future/meta/objects/base.py @@ -39,7 +39,7 @@ class Team(MetaBase[TeamCore]): def __init__( self, element: R, - client: ClientCore = ClientCore(), + client: ClientCore, meta_params: Optional[Param] = None, ) -> None: self.client = client diff --git a/darwin/future/tests/meta/objects/test_v7_id.py b/darwin/future/tests/meta/objects/test_v7_id.py index f6c4484e9..62171cc2d 100644 --- a/darwin/future/tests/meta/objects/test_v7_id.py +++ b/darwin/future/tests/meta/objects/test_v7_id.py @@ -1,13 +1,14 @@ from uuid import UUID - +from darwin.future.meta.client import Client from darwin.future.meta.objects.v7_id import V7ID +from darwin.future.tests.meta.fixtures import * -def test_v7_id() -> None: +def test_v7_id(base_meta_client: Client) -> None: # Test creating a V7ID object uuid = UUID("123e4567-e89b-12d3-a456-426655440000") - v7_id = V7ID(uuid) + v7_id = V7ID(uuid, base_meta_client) assert v7_id.id == uuid # Test __str__ method