16 lines
374 B
Python
16 lines
374 B
Python
|
from mastodon.application import MastodonApplication
|
||
|
import pytest
|
||
|
|
||
|
@pytest.fixture
|
||
|
def app():
|
||
|
yield MastodonApplication("pymastodon")
|
||
|
|
||
|
def test_authorize(app):
|
||
|
app.authorization.authorize()
|
||
|
token = app.authorization.fetch_token()
|
||
|
assert token is not None
|
||
|
|
||
|
def test_get_login_url(app):
|
||
|
url = app.authorization.get_login_url()
|
||
|
assert url is not None
|