# Path: pyuploadcare/transformations/document.py
# class DocumentFormat(StrEnum):
#     pdf = "pdf"
#     doc = "doc"
#     docx = "docx"
#     xls = "xls"
#     xlsx = "xlsx"
#     odt = "odt"
#     ods = "ods"
#     rtf = "rtf"
#     txt = "txt"
#     jpg = "jpg"
#     enhanced_jpg = "enhanced.jpg"
#     png = "png"
# 
# class DocumentTransformation(BaseTransformation):
#     def format(self, file_format: DocumentFormat) -> "DocumentTransformation":
#         self.set("format", [file_format])
#         return self
# 
#     def page(self, page_number: int) -> "DocumentTransformation":
#         self.set("page", [str(page_number)])
#         return self
# 
#     def _prefix(self, file_id: str) -> str:
#         return f"{file_id}/document/"


from pyuploadcare.transformations.document import (
    DocumentFormat,
    DocumentTransformation,
)


def test_document_transformation():
    transformation = DocumentTransformation().format(DocumentFormat.pdf)

    assert transformation.path("a6efd840-076f-4227-9073-bbaef16cfe35") == (
        "a6efd840-076f-4227-9073-bbaef16cfe35/document/-/format/pdf/"
    )


def test_document_transformation_page():
    transformation = (

# Path: pyuploadcare/transformations/document.py
# class DocumentFormat(StrEnum):
#     pdf = "pdf"
#     doc = "doc"
#     docx = "docx"
#     xls = "xls"
#     xlsx = "xlsx"
#     odt = "odt"
#     ods = "ods"
#     rtf = "rtf"
#     txt = "txt"
#     jpg = "jpg"
#     enhanced_jpg = "enhanced.jpg"
#     png = "png"
# 
# class DocumentTransformation(BaseTransformation):
#     def format(self, file_format: DocumentFormat) -> "DocumentTransformation":
#         self.set("format", [file_format])
#         return self
# 
#     def page(self, page_number: int) -> "DocumentTransformation":
#         self.set("page", [str(page_number)])
#         return self
# 
#     def _prefix(self, file_id: str) -> str:
#         return f"{file_id}/document/"


# Path: tests/functional/transformations/test_document.py
from pyuploadcare.transformations.document import (
    DocumentFormat,
    DocumentTransformation,
)



def test_document_transformation():
    transformation = DocumentTransformation().format(DocumentFormat.pdf)

    assert transformation.path("a6efd840-076f-4227-9073-bbaef16cfe35") == (
        "a6efd840-076f-4227-9073-bbaef16cfe35/document/-/format/pdf/"
    )


def test_document_transformation_page():
    transformation = (

        DocumentTransformation().format(DocumentFormat.jpg).page(2)