(event_loop)
| 474 | |
| 475 | @pytest.fixture |
| 476 | def 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 |
nothing calls this directly
no test coverage detected