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

Method test_without_learning_parser

tests/objects/test_operation.py:419–426  ·  view source on GitHub ↗
(self, event_loop, app_svc, contact_svc, data_svc, learning_svc, event_svc,
                                     op_without_learning_parser, make_test_link, make_test_result)

Source from the content-addressed store, hash-verified

417 assert knowledge_data[0].value == '10.10.10.10'
418
419 def test_without_learning_parser(self, event_loop, app_svc, contact_svc, data_svc, learning_svc, event_svc,
420 op_without_learning_parser, make_test_link, make_test_result):
421 test_link = make_test_link(5678)
422 op_without_learning_parser.add_link(test_link)
423 test_result = make_test_result(test_link.id)
424 event_loop.run_until_complete(data_svc.store(op_without_learning_parser))
425 event_loop.run_until_complete(contact_svc._save(test_result))
426 assert len(test_link.facts) == 0
427
428 def test_facts(self, event_loop, app_svc, contact_svc, file_svc, data_svc, learning_svc, fire_event_mock,
429 op_with_learning_and_seeded, make_test_link, make_test_result, knowledge_svc):

Callers

nothing calls this directly

Calls 5

make_test_linkFunction · 0.85
make_test_resultFunction · 0.85
add_linkMethod · 0.80
storeMethod · 0.45
_saveMethod · 0.45

Tested by

no test coverage detected