Skip to content

Commit

Permalink
REFORMAT code style & optimize imports (via black, isort & autoflake)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfneal authored and github-actions[bot] committed Nov 20, 2024
1 parent 8f950c5 commit 0a7e0bc
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/test_decrypt.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

from parameterized import parameterized

from pdfconduit import Pdfconduit, Info
from tests import PdfconduitTestCase, test_data_path, get_clean_pdf_name
from pdfconduit import Info, Pdfconduit
from tests import PdfconduitTestCase, get_clean_pdf_name, test_data_path


def decrypt_params() -> List[str]:
Expand All @@ -30,7 +30,11 @@ class TestDecrypt(PdfconduitTestCase):
@parameterized.expand(decrypt_params, name_func=decrypt_name_func)
def test_can_decrypt(self, path: str):
self.assertTrue(Info(path).encrypted)
self.conduit = Pdfconduit(path, 'foo').set_output_directory(self.temp.name).set_output_suffix('decrypted')
self.conduit = (
Pdfconduit(path, "foo")
.set_output_directory(self.temp.name)
.set_output_suffix("decrypted")
)
self.conduit.write()

self.assertPdfExists(self.conduit.output)
Expand Down

0 comments on commit 0a7e0bc

Please sign in to comment.