kopia lustrzana https://github.com/halcy/Mastodon.py
Fix cross page links in docs
rodzic
98d9dfa357
commit
c1b7a7e4e5
|
@ -95,7 +95,8 @@ manually (or persist objects, not just dicts).
|
|||
|
||||
There are convenience functions available for fetching the previous and next page of
|
||||
a paginated request as well as for fetching all pages starting from a first page.
|
||||
For details, see `fetch_next()`_, `fetch_previous()`_. and `fetch_remaining()`_.
|
||||
For details, see :ref:`fetch_next() <fetch_next()>`, :ref:`fetch_previous() <fetch_previous()>`.
|
||||
and :ref:`fetch_remaining() <fetch_remaining()>`.
|
||||
|
||||
IDs and unpacking
|
||||
-----------------
|
||||
|
|
|
@ -50,7 +50,7 @@ Writing
|
|||
Scheduled statuses
|
||||
------------------
|
||||
These functions allow you to get information about scheduled statuses and to update scheduled statuses that already exist.
|
||||
To create new scheduled statuses, use `status_post()`_ with the `scheduled_at` parameter.
|
||||
To create new scheduled statuses, use :ref:`status_post() <status_post()>` with the `scheduled_at` parameter.
|
||||
|
||||
Reading
|
||||
~~~~~~~
|
||||
|
|
Plik diff jest za duży
Load Diff
|
@ -74,13 +74,13 @@ def test_instance_rules(api):
|
|||
assert isinstance(api.instance_rules(), list)
|
||||
|
||||
def test_version_parsing(api):
|
||||
assert parse_version_string(api._Mastodon__normalize_version_string("4.0.2")) == [4, 0, 2]
|
||||
assert parse_version_string(api._Mastodon__normalize_version_string("2.1.0rc3")) == [2, 1, 0]
|
||||
assert parse_version_string(api._Mastodon__normalize_version_string("1.0.7+3.5.5")) == [3, 5, 5]
|
||||
assert parse_version_string(api._Mastodon__normalize_version_string("1.0.7+3.5.5rc2")) == [3, 5, 5]
|
||||
assert parse_version_string(api._Mastodon__normalize_version_string("3.5.1+chitter")) == [3, 5, 1]
|
||||
assert parse_version_string(api._Mastodon__normalize_version_string("3.5.1+chitter-6.6.6")) == [3, 5, 1]
|
||||
assert parse_version_string(api._Mastodon__normalize_version_string("3.5.1rc4+chitter-6.6.6")) == [3, 5, 1]
|
||||
assert parse_version_string(api._Mastodon__normalize_version_string("3.5.1+chitter6.6.6")) == [3, 5, 1]
|
||||
assert parse_version_string(api._Mastodon__normalize_version_string("3.5.0 (compatible; Pleroma 1.2.3)")) == [3, 5, 0]
|
||||
assert parse_version_string(api._Mastodon__normalize_version_string("3.2.1rc3 (compatible; Akkoma 3.2.4+shinychariot)")) == [3, 2, 1]
|
||||
assert parse_version_string(api._Mastodon__normalize_version_string("4.0.2")) == (4, 0, 2)
|
||||
assert parse_version_string(api._Mastodon__normalize_version_string("2.1.0rc3")) == (2, 1, 0)
|
||||
assert parse_version_string(api._Mastodon__normalize_version_string("1.0.7+3.5.5")) == (3, 5, 5)
|
||||
assert parse_version_string(api._Mastodon__normalize_version_string("1.0.7+3.5.5rc2")) == (3, 5, 5)
|
||||
assert parse_version_string(api._Mastodon__normalize_version_string("3.5.1+chitter")) == (3, 5, 1)
|
||||
assert parse_version_string(api._Mastodon__normalize_version_string("3.5.1+chitter-6.6.6")) == (3, 5, 1)
|
||||
assert parse_version_string(api._Mastodon__normalize_version_string("3.5.1rc4+chitter-6.6.6")) == (3, 5, 1)
|
||||
assert parse_version_string(api._Mastodon__normalize_version_string("3.5.1+chitter6.6.6")) == (3, 5, 1)
|
||||
assert parse_version_string(api._Mastodon__normalize_version_string("3.5.0 (compatible; Pleroma 1.2.3)")) == (3, 5, 0)
|
||||
assert parse_version_string(api._Mastodon__normalize_version_string("3.2.1rc3 (compatible; Akkoma 3.2.4+shinychariot)")) == (3, 2, 1)
|
||||
|
|
Ładowanie…
Reference in New Issue