Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 11c9657

Browse files
committed
feat: upload resume pdf file
1 parent 71cffc2 commit 11c9657

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

app/supbot/utils/filters.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ class DocumentErrorType(StrEnum):
3939

4040

4141
class DocumentFilter(Filter):
42-
43-
MAX_DOCUMENT_SIZE = 10 * 2**20
42+
MAX_DOCUMENT_SIZE: int = 10 * 2**20
4443

4544
def __init__(
4645
self,

tests/supbot/test_vacancy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ async def test_sending_resume_unsupported_document(
433433
mime_type = "application/pdf"
434434
file_size = faker.random_int(
435435
min=DocumentFilter.MAX_DOCUMENT_SIZE,
436-
max=DocumentFilter.MAX_DOCUMENT_SIZE + 1,
436+
max=DocumentFilter.MAX_DOCUMENT_SIZE + faker.random_int(min=1),
437437
)
438438

439439
webhook_updater(

0 commit comments

Comments
 (0)