]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Add typing to assertContainsStrings test util
authorshamoon <4887959+shamoon@users.noreply.github.com>
Thu, 11 Sep 2025 20:56:14 +0000 (13:56 -0700)
committershamoon <4887959+shamoon@users.noreply.github.com>
Thu, 11 Sep 2025 20:56:14 +0000 (13:56 -0700)
src/paperless_remote/tests/test_parser.py

index d83baa14029b7307731f3104d5643226d1c2f8c4..aa9df6117ae7d5d98c7198d6da40f41fe4775f8a 100644 (file)
@@ -14,7 +14,7 @@ from paperless_remote.signals import get_parser
 class TestParser(DirectoriesMixin, FileSystemAssertsMixin, TestCase):
     SAMPLE_FILES = Path(__file__).resolve().parent / "samples"
 
-    def assertContainsStrings(self, content, strings):
+    def assertContainsStrings(self, content: str, strings: list[str]):
         # Asserts that all strings appear in content, in the given order.
         indices = []
         for s in strings: