From 95239666facb10f585d9af58965ebdae8cfb8f59 Mon Sep 17 00:00:00 2001 From: halcy Date: Sat, 16 Aug 2025 22:26:05 +0300 Subject: [PATCH] amend to fix pre 2.9.2 tests --- tests/test_notifications.py | 4 ++++ tests/test_status.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/tests/test_notifications.py b/tests/test_notifications.py index 4fe6d0c..e2af6a5 100644 --- a/tests/test_notifications.py +++ b/tests/test_notifications.py @@ -68,6 +68,10 @@ def test_notifications_dismiss_pre_2_9_2(api, api2): if sys.version_info > (3, 9): # 3.10 and up will not load the json data and regenerating it would require a 2.9.2 instance pytest.skip("Test skipped for 3.10 and up") else: + api._Mastodon__version_check_worked = True + api._Mastodon__version_check_tried = True + api2._Mastodon__version_check_worked = True + api2._Mastodon__version_check_tried = True with vcr.use_cassette('test_notifications_dismiss.yaml', cassette_library_dir='tests/cassettes_pre_2_9_2', record_mode='none'): status = None try: diff --git a/tests/test_status.py b/tests/test_status.py index 2fde314..12e3e72 100644 --- a/tests/test_status.py +++ b/tests/test_status.py @@ -59,6 +59,8 @@ def test_status_card_pre_2_9_2(api): if sys.version_info > (3, 9): # 3.10 and up will not load the json data and regenerating it would require a 2.9.2 instance pytest.skip("Test skipped for 3.10 and up") else: + api._Mastodon__version_check_worked = True + api._Mastodon__version_check_tried = True with vcr.use_cassette('test_status_card.yaml', cassette_library_dir='tests/cassettes_pre_2_9_2', record_mode='none'): import time status = api.status_post("http://example.org/")