(new_source_payload, mocker, mock_time)
| 36 | |
| 37 | @pytest.fixture |
| 38 | def 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 |
nothing calls this directly
no test coverage detected