diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-28 16:13:20 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-28 16:13:20 -0700 |
commit | 1855e07ea846126bc27b1419f104a024d78623c7 (patch) | |
tree | 2958d839c9840091db3949993162eb8ed1db0ebe /python/tests/fixtures.py | |
parent | f3c9fa0a311dc5413c4964d6183004bff6a5783a (diff) | |
download | fatcat-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.py | 21 |
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 ################################################################## |