(self, request, IHDR_chunk_, pHYs_chunk_)
| 215 | |
| 216 | @pytest.fixture(params=[True, False]) |
| 217 | def pHYs_fixture(self, request, IHDR_chunk_, pHYs_chunk_): |
| 218 | has_pHYs_chunk = request.param |
| 219 | chunks = [IHDR_chunk_] |
| 220 | if has_pHYs_chunk: |
| 221 | chunks.append(pHYs_chunk_) |
| 222 | expected_chunk = pHYs_chunk_ if has_pHYs_chunk else None |
| 223 | chunks = _Chunks(chunks) |
| 224 | return chunks, expected_chunk |
| 225 | |
| 226 | @pytest.fixture |
| 227 | def stream_(self, request): |