Prepare tests for 2.9.2 compat
This commit is contained in:
pare
0d0b96e7c5
commit
a34e21cfa7
S'han modificat 2 arxius amb 3 adicions i 3 eliminacions
|
@ -1,6 +1,6 @@
|
||||||
import pytest
|
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
|
import mastodon
|
||||||
return mastodon.Mastodon(
|
return mastodon.Mastodon(
|
||||||
api_base_url='http://localhost:3000',
|
api_base_url='http://localhost:3000',
|
||||||
|
|
|
@ -55,7 +55,7 @@ INSERT INTO oauth_applications (
|
||||||
'__MASTODON_PY_TEST_CLIENT_ID',
|
'__MASTODON_PY_TEST_CLIENT_ID',
|
||||||
'__MASTODON_PY_TEST_CLIENT_SECRET',
|
'__MASTODON_PY_TEST_CLIENT_SECRET',
|
||||||
'urn:ietf:wg:oauth:2.0:oob',
|
'urn:ietf:wg:oauth:2.0:oob',
|
||||||
'read write follow push',
|
'read write follow push admin:read admin:write',
|
||||||
'User',
|
'User',
|
||||||
1234567890123456,
|
1234567890123456,
|
||||||
now(),
|
now(),
|
||||||
|
@ -71,7 +71,7 @@ INSERT INTO oauth_access_tokens (
|
||||||
) VALUES (
|
) VALUES (
|
||||||
1234567890123456,
|
1234567890123456,
|
||||||
'__MASTODON_PY_TEST_ACCESS_TOKEN',
|
'__MASTODON_PY_TEST_ACCESS_TOKEN',
|
||||||
'read write follow push',
|
'read write follow push admin:read admin:write',
|
||||||
1234567890123456,
|
1234567890123456,
|
||||||
1234567890123456,
|
1234567890123456,
|
||||||
now()
|
now()
|
||||||
|
|
Loading…
Referencia en una nova incidència