MCPcopy
hub / github.com/apache/caldera / StubDataService

Class StubDataService

tests/api/v2/managers/test_base_api_manager.py:9–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8
9class StubDataService:
10 def __init__(self):
11 self.ram = {}
12 self.conf = {}
13 self.Access = BaseWorld.Access
14
15 def apply_config(self, prop, config):
16 self.conf[prop] = config
17
18 def get_config(self, prop=None, name=None):
19 if prop in self.conf:
20 return self.conf[prop]
21
22
23class TestSchema(ma.Schema):

Calls

no outgoing calls