diff options
author | halcy <halcy@ARARAGI-KUN> | 2022-11-30 19:28:42 +0200 |
---|---|---|
committer | halcy <halcy@ARARAGI-KUN> | 2022-11-30 19:28:42 +0200 |
commit | 245343835383e7ac597c90fdb3201921ee0de8ad (patch) | |
tree | f210f50213359d0bf8d72b08a6846d5f95b5d291 /tests | |
parent | fa91b618c3fa30281cd8403a87ebe3f75b8360b4 (diff) | |
download | mastodon.py-245343835383e7ac597c90fdb3201921ee0de8ad.tar.gz |
reapply accidentally reverted changes
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_instance.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/test_instance.py b/tests/test_instance.py index 99a3534..afd883d 100644 --- a/tests/test_instance.py +++ b/tests/test_instance.py | |||
@@ -74,13 +74,13 @@ def test_instance_rules(api): | |||
74 | assert isinstance(api.instance_rules(), list) | 74 | assert isinstance(api.instance_rules(), list) |
75 | 75 | ||
76 | def test_version_parsing(api): | 76 | def test_version_parsing(api): |
77 | assert parse_version_string(api._Mastodon__normalize_version_string("4.0.2")) == [4, 0, 2] | 77 | assert parse_version_string(api._Mastodon__normalize_version_string("4.0.2")) == (4, 0, 2) |
78 | assert parse_version_string(api._Mastodon__normalize_version_string("2.1.0rc3")) == [2, 1, 0] | 78 | assert parse_version_string(api._Mastodon__normalize_version_string("2.1.0rc3")) == (2, 1, 0) |
79 | assert parse_version_string(api._Mastodon__normalize_version_string("1.0.7+3.5.5")) == [3, 5, 5] | 79 | assert parse_version_string(api._Mastodon__normalize_version_string("1.0.7+3.5.5")) == (3, 5, 5) |
80 | assert parse_version_string(api._Mastodon__normalize_version_string("1.0.7+3.5.5rc2")) == [3, 5, 5] | 80 | assert parse_version_string(api._Mastodon__normalize_version_string("1.0.7+3.5.5rc2")) == (3, 5, 5) |
81 | assert parse_version_string(api._Mastodon__normalize_version_string("3.5.1+chitter")) == [3, 5, 1] | 81 | assert parse_version_string(api._Mastodon__normalize_version_string("3.5.1+chitter")) == (3, 5, 1) |
82 | assert parse_version_string(api._Mastodon__normalize_version_string("3.5.1+chitter-6.6.6")) == [3, 5, 1] | 82 | assert parse_version_string(api._Mastodon__normalize_version_string("3.5.1+chitter-6.6.6")) == (3, 5, 1) |
83 | assert parse_version_string(api._Mastodon__normalize_version_string("3.5.1rc4+chitter-6.6.6")) == [3, 5, 1] | 83 | assert parse_version_string(api._Mastodon__normalize_version_string("3.5.1rc4+chitter-6.6.6")) == (3, 5, 1) |
84 | assert parse_version_string(api._Mastodon__normalize_version_string("3.5.1+chitter6.6.6")) == [3, 5, 1] | 84 | assert parse_version_string(api._Mastodon__normalize_version_string("3.5.1+chitter6.6.6")) == (3, 5, 1) |
85 | assert parse_version_string(api._Mastodon__normalize_version_string("3.5.0 (compatible; Pleroma 1.2.3)")) == [3, 5, 0] | 85 | assert parse_version_string(api._Mastodon__normalize_version_string("3.5.0 (compatible; Pleroma 1.2.3)")) == (3, 5, 0) |
86 | assert parse_version_string(api._Mastodon__normalize_version_string("3.2.1rc3 (compatible; Akkoma 3.2.4+shinychariot)")) == [3, 2, 1] | 86 | assert parse_version_string(api._Mastodon__normalize_version_string("3.2.1rc3 (compatible; Akkoma 3.2.4+shinychariot)")) == (3, 2, 1) |