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

Function test_source_existing_relationships

tests/conftest.py:476–483  ·  view source on GitHub ↗
(event_loop)

Source from the content-addressed store, hash-verified

474
475@pytest.fixture
476def test_source_existing_relationships(event_loop):
477 test_fact_1 = Fact(trait='test_1', value='1')
478 test_fact_2 = Fact(trait='test_2', value='2')
479 test_relationship = Relationship(source=test_fact_1, edge='test_edge', target=test_fact_2)
480 test_source = Source(id='123', name='test', facts=[test_fact_1, test_fact_2], adjustments=[],
481 relationships=[test_relationship])
482 event_loop.run_until_complete(BaseService.get_service('data_svc').store(test_source))
483 return test_source
484
485
486@pytest.fixture

Callers

nothing calls this directly

Calls 5

FactClass · 0.90
RelationshipClass · 0.90
SourceClass · 0.90
get_serviceMethod · 0.80
storeMethod · 0.45

Tested by

no test coverage detected