From a34e21cfa7cd71fbfc70b4836505e6399e0ff672 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sat, 22 Jun 2019 22:09:44 +0200 Subject: [PATCH] Prepare tests for 2.9.2 compat --- tests/conftest.py | 2 +- tests/setup.sql | 4 ++-- 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 @@ import pytest -def _api(access_token='__MASTODON_PY_TEST_ACCESS_TOKEN', version="2.8.0", version_check_mode="created"): +def _api(access_token='__MASTODON_PY_TEST_ACCESS_TOKEN', version="2.9.2", version_check_mode="created"): import mastodon return mastodon.Mastodon( 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 ( '__MASTODON_PY_TEST_CLIENT_ID', '__MASTODON_PY_TEST_CLIENT_SECRET', 'urn:ietf:wg:oauth:2.0:oob', - 'read write follow push', + 'read write follow push admin:read admin:write', 'User', 1234567890123456, now(), @@ -71,7 +71,7 @@ INSERT INTO oauth_access_tokens ( ) VALUES ( 1234567890123456, '__MASTODON_PY_TEST_ACCESS_TOKEN', - 'read write follow push', + 'read write follow push admin:read admin:write', 1234567890123456, 1234567890123456, now()