MCPcopy
hub / github.com/JerBouma/FinanceDatabase / capture

Method capture

tests/conftest.py:291–299  ·  view source on GitHub ↗
(self, captured: Any, strip: bool = False, **kwargs)

Source from the content-addressed store, hash-verified

289 self.__record_list: list[Record] = list()
290
291 def capture(self, captured: Any, strip: bool = False, **kwargs):
292 record_list = self.__record_list
293 record_path = self.__path_template.build_path_by_data(
294 data=captured, index=len(record_list)
295 )
296 record = Record(
297 captured=captured, record_path=record_path, strip=strip, **kwargs
298 )
299 self.__record_list.append(record)
300
301 def capture_list(self, captured_list: list[Any], strip: bool = False):
302 for captured in captured_list:

Callers 15

capture_listMethod · 0.95
record_stdoutFunction · 0.95
test_selectFunction · 0.80
test_show_optionsFunction · 0.80
test_searchFunction · 0.80
test_selectFunction · 0.80
test_show_optionsFunction · 0.80
test_searchFunction · 0.80
test_selectFunction · 0.80
test_show_optionsFunction · 0.80
test_searchFunction · 0.80
test_selectFunction · 0.80

Calls 2

RecordClass · 0.85
build_path_by_dataMethod · 0.80

Tested by

no test coverage detected