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

Function expected_replaced_source_dump

tests/api/v2/handlers/test_sources_api.py:104–111  ·  view source on GitHub ↗
(replaced_source_payload, mocker, mock_time)

Source from the content-addressed store, hash-verified

102
103@pytest.fixture
104def expected_replaced_source_dump(replaced_source_payload, mocker, mock_time):
105 with mocker.patch('app.objects.secondclass.c_fact.datetime') as mock_datetime:
106 mock_datetime.return_value = mock_datetime
107 mock_datetime.now.return_value = mock_time
108 source = SourceSchema().load(replaced_source_payload)
109 dumped_obj = source.display_schema.dump(source)
110 dumped_obj['relationships'][0]['unique'] = mock.ANY
111 return dumped_obj
112
113
114@pytest.fixture

Callers

nothing calls this directly

Calls 2

SourceSchemaClass · 0.90
loadMethod · 0.45

Tested by

no test coverage detected