diff options
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 ################################################################## |