Newer
Older
# Copyright (c) 2019 Nico Alt
# SPDX-License-Identifier: AGPL-3.0-only
# License-Filename: LICENSE.md
import pytest
# pylint: disable=redefined-outer-name
@pytest.fixture
api.auth_token = auth_token
return api
@pytest.fixture
def auth_token():
return 'NMDArEDjYlagINGd77WkKdxqDUAkYCWwh'
@pytest.fixture
def request_headers(auth_token):
request_headers = {
"Authorization": 'Bearer %s' % auth_token