Skip to content

Commit 9ce4a14

Browse files
Add missing encryption and restriction test coverage
Assisted-by: Codex
1 parent 1b8b430 commit 9ce4a14

3 files changed

Lines changed: 528 additions & 113 deletions

File tree

tests/live/test_live_encrypt_pdf.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
11
from __future__ import annotations
22

3-
from typing import cast, get_args
43
from uuid import uuid4
54

65
import pytest
76

87
from pdfrest import AsyncPdfRestClient, PdfRestApiError, PdfRestClient
98
from pdfrest.models import PdfRestFile
10-
from pdfrest.types import PdfRestriction
119

1210
from ..resources import get_test_resource_path
1311

14-
PDF_RESTRICTIONS: tuple[PdfRestriction, ...] = cast(
15-
tuple[PdfRestriction, ...], get_args(PdfRestriction)
16-
)
17-
1812

1913
def make_password(label: str) -> str:
2014
return f"{label}-{uuid4().hex}"

0 commit comments

Comments
 (0)