(link_id)
| 155 | @pytest.fixture |
| 156 | def make_test_result(): |
| 157 | def _make_result(link_id): |
| 158 | result = dict( |
| 159 | id=link_id, |
| 160 | output=str(base64.b64encode('10.10.10.10'.encode('utf-8')).decode('utf-8')), |
| 161 | pid=0, |
| 162 | status=0 |
| 163 | ) |
| 164 | return Result(**result) |
| 165 | return _make_result |
| 166 | |
| 167 |