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

Function test_source

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

Source from the content-addressed store, hash-verified

466
467@pytest.fixture
468def test_source(event_loop):
469 test_fact = Fact(trait='remote.host.fqdn', value='dc')
470 test_source = Source(id='123', name='test', facts=[test_fact], adjustments=[])
471 event_loop.run_until_complete(BaseService.get_service('data_svc').store(test_source))
472 return test_source
473
474
475@pytest.fixture

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected