MCPcopy Create free account
hub / github.com/couchbase/couchbase-python-client / __init__

Method __init__

tests/mock_server.py:255–273  ·  view source on GitHub ↗
(self,
                 caves_path=None,  # type: Optional[str]
                 caves_url=None,  # type: Optional[str]
                 caves_version=None,  # type: Optional[str]
                 log_dir=None,  # type: Optional[str]
                 log_filename=None,  # type: Optional[str]
                 )

Source from the content-addressed store, hash-verified

253
254class CavesMockServer(MockServer):
255 def __init__(self,
256 caves_path=None, # type: Optional[str]
257 caves_url=None, # type: Optional[str]
258 caves_version=None, # type: Optional[str]
259 log_dir=None, # type: Optional[str]
260 log_filename=None, # type: Optional[str]
261 ):
262
263 super().__init__(log_dir=log_dir, log_filename=log_filename)
264
265 if caves_url is None:
266 caves_url = 'https://github.com/couchbaselabs/gocaves/releases/download'
267
268 self._caves_version = caves_version
269 if self._caves_version is None:
270 self._caves_version = 'v0.0.1-74'
271
272 self._build_caves_url(caves_url)
273 self._validate_caves_path(caves_path)
274
275 # @property
276 # def rest_port(self):

Callers

nothing calls this directly

Calls 3

_build_caves_urlMethod · 0.95
_validate_caves_pathMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected