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

Function expected_new_source_dump

tests/api/v2/handlers/test_sources_api.py:38–45  ·  view source on GitHub ↗
(new_source_payload, mocker, mock_time)

Source from the content-addressed store, hash-verified

36
37@pytest.fixture
38def expected_new_source_dump(new_source_payload, mocker, mock_time):
39 with mocker.patch('app.objects.secondclass.c_fact.datetime') as mock_datetime:
40 mock_datetime.return_value = mock_datetime
41 mock_datetime.now.return_value = mock_time
42 source = SourceSchema().load(new_source_payload)
43 dumped_obj = source.display_schema.dump(source)
44 dumped_obj['relationships'][0]['unique'] = mock.ANY
45 return dumped_obj
46
47
48@pytest.fixture

Callers

nothing calls this directly

Calls 2

SourceSchemaClass · 0.90
loadMethod · 0.45

Tested by

no test coverage detected