(
self,
items: Iterable[Any],
rows: Iterable[dict[str, Any]],
settings: dict[str, Any] | None = None,
)
| 435 | assert result == expected |
| 436 | |
| 437 | async def assertExportedMarshal( |
| 438 | self, |
| 439 | items: Iterable[Any], |
| 440 | rows: Iterable[dict[str, Any]], |
| 441 | settings: dict[str, Any] | None = None, |
| 442 | ) -> None: |
| 443 | settings = settings or {} |
| 444 | settings.update( |
| 445 | { |
| 446 | class="st">"FEEDS": { |
| 447 | self._random_temp_filename(): {class="st">"format": class="st">"marshal"}, |
| 448 | }, |
| 449 | } |
| 450 | ) |
| 451 | data = await self.exported_data(items, settings) |
| 452 | expected = [{k: v for k, v in row.items() if v} for row in rows] |
| 453 | |
| 454 | result = self._load_until_eof(data[class="st">"marshal"], load_func=marshal.load) |
| 455 | assert result == expected |
| 456 | |
| 457 | @inline_callbacks_test |
| 458 | def test_stats_file_success(self): |
nothing calls this directly
no test coverage detected