aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2019-06-22 22:09:44 +0200
committerLorenz Diener <[email protected]>2019-06-22 22:09:44 +0200
commita34e21cfa7cd71fbfc70b4836505e6399e0ff672 (patch)
treec43062040fa2344b0c6116e72c05c7c132883b1e /tests
parent0d0b96e7c5a8b406c964b2f6b1dfe39122b9e730 (diff)
downloadmastodon.py-a34e21cfa7cd71fbfc70b4836505e6399e0ff672.tar.gz
Prepare tests for 2.9.2 compat
Diffstat (limited to 'tests')
-rw-r--r--tests/conftest.py2
-rw-r--r--tests/setup.sql4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 66fffdc..f4d38d9 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,6 +1,6 @@
1import pytest 1import pytest
2 2
3def _api(access_token='__MASTODON_PY_TEST_ACCESS_TOKEN', version="2.8.0", version_check_mode="created"): 3def _api(access_token='__MASTODON_PY_TEST_ACCESS_TOKEN', version="2.9.2", version_check_mode="created"):
4 import mastodon 4 import mastodon
5 return mastodon.Mastodon( 5 return mastodon.Mastodon(
6 api_base_url='http://localhost:3000', 6 api_base_url='http://localhost:3000',
diff --git a/tests/setup.sql b/tests/setup.sql
index 17f3def..171f4da 100644
--- a/tests/setup.sql
+++ b/tests/setup.sql
@@ -55,7 +55,7 @@ INSERT INTO oauth_applications (
55 '__MASTODON_PY_TEST_CLIENT_ID', 55 '__MASTODON_PY_TEST_CLIENT_ID',
56 '__MASTODON_PY_TEST_CLIENT_SECRET', 56 '__MASTODON_PY_TEST_CLIENT_SECRET',
57 'urn:ietf:wg:oauth:2.0:oob', 57 'urn:ietf:wg:oauth:2.0:oob',
58 'read write follow push', 58 'read write follow push admin:read admin:write',
59 'User', 59 'User',
60 1234567890123456, 60 1234567890123456,
61 now(), 61 now(),
@@ -71,7 +71,7 @@ INSERT INTO oauth_access_tokens (
71) VALUES ( 71) VALUES (
72 1234567890123456, 72 1234567890123456,
73 '__MASTODON_PY_TEST_ACCESS_TOKEN', 73 '__MASTODON_PY_TEST_ACCESS_TOKEN',
74 'read write follow push', 74 'read write follow push admin:read admin:write',
75 1234567890123456, 75 1234567890123456,
76 1234567890123456, 76 1234567890123456,
77 now() 77 now()
Powered by cgit v1.2.3 (git 2.41.0)