(updated_source_payload, mocker, mock_time)
| 69 | |
| 70 | @pytest.fixture |
| 71 | def expected_updated_source_dump(updated_source_payload, mocker, mock_time): |
| 72 | with mocker.patch('app.objects.secondclass.c_fact.datetime') as mock_datetime: |
| 73 | mock_datetime.return_value = mock_datetime |
| 74 | mock_datetime.now.return_value = mock_time |
| 75 | source = SourceSchema().load(updated_source_payload) |
| 76 | dumped_obj = source.display_schema.dump(source) |
| 77 | dumped_obj['relationships'][0]['unique'] = mock.ANY |
| 78 | dumped_obj['plugin'] = '' |
| 79 | return dumped_obj |
| 80 | |
| 81 | |
| 82 | @pytest.fixture |
nothing calls this directly
no test coverage detected