aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhalcy <halcy@ARARAGI-KUN>2022-11-11 00:21:00 +0200
committerhalcy <halcy@ARARAGI-KUN>2022-11-11 00:21:00 +0200
commit78a1c174688d51040d76fce0b9bc7693ec985a97 (patch)
treee1e9dfe35d35eee58db5f47c529697de794e47fc /tests/conftest.py
parent6e170393e6a044d9d6981a15d94b7cdada97aac4 (diff)
downloadmastodon.py-78a1c174688d51040d76fce0b9bc7693ec985a97.tar.gz
Fix tests
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 50b317e..0d2634c 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,5 +1,8 @@
1import pytest 1import pytest
2 2
3# Set this to True to debug issues with tests
4DEBUG_REQUESTS = True
5
3def _api(access_token='__MASTODON_PY_TEST_ACCESS_TOKEN', version="3.1.1", version_check_mode="created"): 6def _api(access_token='__MASTODON_PY_TEST_ACCESS_TOKEN', version="3.1.1", version_check_mode="created"):
4 import mastodon 7 import mastodon
5 return mastodon.Mastodon( 8 return mastodon.Mastodon(
@@ -9,7 +12,8 @@ def _api(access_token='__MASTODON_PY_TEST_ACCESS_TOKEN', version="3.1.1", versio
9 access_token=access_token, 12 access_token=access_token,
10 mastodon_version=version, 13 mastodon_version=version,
11 version_check_mode=version_check_mode, 14 version_check_mode=version_check_mode,
12 user_agent='tests/v311') 15 user_agent='tests/v311',
16 debug_requests=DEBUG_REQUESTS)
13 17
14 18
15@pytest.fixture 19@pytest.fixture
Powered by cgit v1.2.3 (git 2.41.0)