| 56 | |
| 57 | |
| 58 | class ExternalReplyInfoTestBase: |
| 59 | origin = MessageOriginUser( |
| 60 | dtm.datetime.now(dtm.timezone.utc).replace(microsecond=0), User(1, "user", False) |
| 61 | ) |
| 62 | chat = Chat(1, Chat.SUPERGROUP) |
| 63 | message_id = 123 |
| 64 | link_preview_options = LinkPreviewOptions(True) |
| 65 | giveaway = Giveaway( |
| 66 | (Chat(1, Chat.CHANNEL), Chat(2, Chat.SUPERGROUP)), |
| 67 | dtm.datetime.now(dtm.timezone.utc).replace(microsecond=0), |
| 68 | 1, |
| 69 | ) |
| 70 | paid_media = PaidMediaInfo(5, [PaidMediaPreview(10, 10, 10)]) |
| 71 | checklist = Checklist( |
| 72 | title="Checklist Title", |
| 73 | tasks=[ |
| 74 | ChecklistTask(text="Item 1", id=1), |
| 75 | ChecklistTask(text="Item 2", id=2), |
| 76 | ], |
| 77 | ) |
| 78 | live_photo = LivePhoto( |
| 79 | file_id="file_id", |
| 80 | file_unique_id="file_unique_id", |
| 81 | width=100, |
| 82 | height=100, |
| 83 | duration=dtm.timedelta(seconds=10), |
| 84 | photo=[], |
| 85 | mime_type="image/jpeg", |
| 86 | file_size=1024, |
| 87 | ) |
| 88 | |
| 89 | |
| 90 | class TestExternalReplyInfoWithoutRequest(ExternalReplyInfoTestBase): |
nothing calls this directly
no test coverage detected
searching dependent graphs…