summaryrefslogtreecommitdiffstats
path: root/python/tests/fixtures.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-28 16:13:20 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-28 16:13:20 -0700
commit1855e07ea846126bc27b1419f104a024d78623c7 (patch)
tree2958d839c9840091db3949993162eb8ed1db0ebe /python/tests/fixtures.py
parentf3c9fa0a311dc5413c4964d6183004bff6a5783a (diff)
downloadfatcat-1855e07ea846126bc27b1419f104a024d78623c7.tar.gz
fatcat-1855e07ea846126bc27b1419f104a024d78623c7.zip
refactor python web interface to work with API backend
Diffstat (limited to 'python/tests/fixtures.py')
-rw-r--r--python/tests/fixtures.py21
1 files changed, 12 insertions, 9 deletions
diff --git a/python/tests/fixtures.py b/python/tests/fixtures.py
index 9092421f..b1682e79 100644
--- a/python/tests/fixtures.py
+++ b/python/tests/fixtures.py
@@ -21,15 +21,18 @@ def app(full_app):
@pytest.fixture(scope="function")
def api_client(full_app):
- 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)
+ # 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")
## Helpers ##################################################################