Add typing to assertContainsStrings test util

This commit is contained in:
shamoon
2025-09-11 13:56:14 -07:00
parent 47b2d2964b
commit 315b90f8e5

View 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: