aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests/fixtures.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-12-14 22:07:20 +0800
committerBryan Newbold <bnewbold@robocracy.org>2018-12-14 22:07:24 +0800
commitec00a3a663e73c1f86e77632c10b14da8b615910 (patch)
tree8629c390277b919f8afa9e4d5b03b68b48f3726a /python/tests/fixtures.py
parentf8b92a6955dfdd3d5348af63951ef2728d8948b8 (diff)
downloadfatcat-ec00a3a663e73c1f86e77632c10b14da8b615910.tar.gz
fatcat-ec00a3a663e73c1f86e77632c10b14da8b615910.zip
whole bunch of entity redirect tests (python)
Some of the edge cases are marked skip while I re-think what behavior should actually be.
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?