Skip to content

Commit

Permalink
reverting 'sensible' defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Perkins committed Nov 2, 2023
1 parent c5acd04 commit 0974fb1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion darwin/future/core/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class ClientCore:

def __init__(
self,
config: DarwinConfig = DarwinConfig.local(),
config: DarwinConfig,
retries: Optional[Retry] = None,
) -> None:
self.config = config
Expand Down
2 changes: 1 addition & 1 deletion darwin/future/meta/objects/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions darwin/future/tests/meta/objects/test_v7_id.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 0974fb1

Please sign in to comment.