| 39 | |
| 40 | |
| 41 | class BusinessTestBase: |
| 42 | id_ = "123" |
| 43 | user = User(123, "test_user", False) |
| 44 | user_chat_id = 123 |
| 45 | date = dtm.datetime.now(tz=UTC).replace(microsecond=0) |
| 46 | can_change_gift_settings = True |
| 47 | can_convert_gifts_to_stars = True |
| 48 | can_delete_all_messages = True |
| 49 | can_delete_sent_messages = True |
| 50 | can_edit_bio = True |
| 51 | can_edit_name = True |
| 52 | can_edit_profile_photo = True |
| 53 | can_edit_username = True |
| 54 | can_manage_stories = True |
| 55 | can_read_messages = True |
| 56 | can_reply = True |
| 57 | can_transfer_and_upgrade_gifts = True |
| 58 | can_transfer_stars = True |
| 59 | can_view_gifts_and_stars = True |
| 60 | is_enabled = True |
| 61 | message_ids = (123, 321) |
| 62 | business_connection_id = "123" |
| 63 | chat = Chat(123, "test_chat") |
| 64 | title = "Business Title" |
| 65 | message = "Business description" |
| 66 | sticker = Sticker("sticker_id", "unique_id", 50, 50, True, False, Sticker.REGULAR) |
| 67 | address = "address" |
| 68 | location = Location(-23.691288, 46.788279) |
| 69 | opening_minute = 0 |
| 70 | closing_minute = 60 |
| 71 | time_zone_name = "Country/City" |
| 72 | opening_hours = [ |
| 73 | BusinessOpeningHoursInterval(opening, opening + 60) for opening in (0, 24 * 60) |
| 74 | ] |
| 75 | |
| 76 | |
| 77 | @pytest.fixture(scope="module") |
nothing calls this directly
no test coverage detected
searching dependent graphs…