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

Class ConcreteAPI

tests/models/test_base_api.py:19–33  ·  view source on GitHub ↗

Concrete implementation of BaseAPI for testing.

Source from the content-addressed store, hash-verified

17
18
19class ConcreteAPI:
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)
34
35
36@pytest.fixture

Callers 4

apiFunction · 0.85

Calls

no outgoing calls

Tested by 4

apiFunction · 0.68