From bde5c8f14e13afe4d54e9bfafd8bda8b0f33f804 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 20 Jun 2018 09:37:37 -0700 Subject: python: refactor importer code (+crossref) --- python/tests/fixtures.py | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'python/tests/fixtures.py') diff --git a/python/tests/fixtures.py b/python/tests/fixtures.py index b1682e79..c9da9253 100644 --- a/python/tests/fixtures.py +++ b/python/tests/fixtures.py @@ -19,23 +19,12 @@ def app(full_app): @pytest.fixture(scope="function") -def api_client(full_app): - - # TODO: - #pid = os.fork() - #if pid == 0: - # full_app.testing = False - # full_app.run(host="localhost", port=8444, debug=False) - # os._exit(0) - # - #time.sleep(0.2) - #yield fatcat.api_client.FatCatApiClient("http://localhost:8444") - #os.kill(pid, signal.SIGKILL) - - yield fatcat.api_client.FatCatApiClient("http://localhost:9411") +def raw_api_client(): + yield fatcat.raw_api_client.RawFatcatApiClient("http://localhost:9411") ## Helpers ################################################################## +# TODO: what are these even here for? def check_entity_fields(e): for key in ('rev', 'is_live', 'redirect_id'): -- cgit v1.2.3