aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests/fixtures.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/tests/fixtures.py')
-rw-r--r--python/tests/fixtures.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/python/tests/fixtures.py b/python/tests/fixtures.py
index 6f68cf5c..509c2093 100644
--- a/python/tests/fixtures.py
+++ b/python/tests/fixtures.py
@@ -5,6 +5,7 @@ import json
import signal
import pytest
import fatcat_web
+import fatcat_client
@pytest.fixture
@@ -17,6 +18,13 @@ def full_app():
def app(full_app):
return full_app.test_client()
+@pytest.fixture
+def api():
+ conf = fatcat_client.Configuration()
+ conf.host = "http://localhost:9411/v0"
+ api_client = fatcat_client.DefaultApi(fatcat_client.ApiClient(conf))
+ return api_client
+
## Helpers ##################################################################
# TODO: what are these even here for?