# Path: tests/conftest.py
# def assert_cache_control(headers, cache_parts):
#     """Assert that all parts of the Cache-Control header are present."""
#     assert dict(headers) == Any.dict.containing({"Cache-Control": Any.string()})
#     assert (
#         headers["Cache-Control"].split(", ") == Any.list.containing(cache_parts).only()
#     )


import pytest
from tests.conftest import assert_cache_control



class TestViewPDFAPI:
    @pytest.mark.usefixtures("checkmate_pass")
    def test_caching_is_disabled(self, test_app):
        response = test_app.get("/pdf?url=http://example.com/foo.pdf")


# Path: tests/conftest.py
# def assert_cache_control(headers, cache_parts):
#     """Assert that all parts of the Cache-Control header are present."""
#     assert dict(headers) == Any.dict.containing({"Cache-Control": Any.string()})
#     assert (
#         headers["Cache-Control"].split(", ") == Any.list.containing(cache_parts).only()
#     )


# Path: tests/functional/api/view_pdf_test.py
import pytest
from tests.conftest import assert_cache_control




class TestViewPDFAPI:
    @pytest.mark.usefixtures("checkmate_pass")
    def test_caching_is_disabled(self, test_app):
        response = test_app.get("/pdf?url=http://example.com/foo.pdf")


        assert_cache_control(