From ec00a3a663e73c1f86e77632c10b14da8b615910 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 14 Dec 2018 22:07:20 +0800 Subject: whole bunch of entity redirect tests (python) Some of the edge cases are marked skip while I re-think what behavior should actually be. --- python/tests/fixtures.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'python/tests/fixtures.py') 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? -- cgit v1.2.3