kopia lustrzana https://github.com/halcy/Mastodon.py
amend to fix pre 2.9.2 tests
rodzic
510e60df2f
commit
95239666fa
|
@ -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
|
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")
|
pytest.skip("Test skipped for 3.10 and up")
|
||||||
else:
|
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'):
|
with vcr.use_cassette('test_notifications_dismiss.yaml', cassette_library_dir='tests/cassettes_pre_2_9_2', record_mode='none'):
|
||||||
status = None
|
status = None
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -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
|
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")
|
pytest.skip("Test skipped for 3.10 and up")
|
||||||
else:
|
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'):
|
with vcr.use_cassette('test_status_card.yaml', cassette_library_dir='tests/cassettes_pre_2_9_2', record_mode='none'):
|
||||||
import time
|
import time
|
||||||
status = api.status_post("http://example.org/")
|
status = api.status_post("http://example.org/")
|
||||||
|
|
Ładowanie…
Reference in New Issue