MCPcopy Create free account
hub / github.com/Open-Bee/DataStudio / __init__

Method __init__

tests/models/test_base_api.py:22–30  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

20 """Concrete implementation of BaseAPI for testing."""
21
22 def __init__(self, **kwargs):
23 from datastudio.models.base import BaseAPI
24
25 # Create a concrete subclass that implements generate_inner
26 class TestableAPI(BaseAPI):
27 def generate_inner(self, inputs, **kwargs):
28 return 0, "test response", None
29
30 self._api = TestableAPI(**kwargs)
31
32 def __getattr__(self, name):
33 return getattr(self._api, name)

Callers 1

__init__Method · 0.45

Calls 1

TestableAPIClass · 0.85

Tested by

no test coverage detected