All current iou code is async

This commit is contained in:
Julien Duponchelle
2015-02-16 17:20:07 +01:00
parent d323234520
commit 15f89776d3
8 changed files with 97 additions and 30 deletions

View File

@ -37,6 +37,17 @@ from tests.api.base import Query
os.environ["PATH"] = tempfile.mkdtemp()
@pytest.yield_fixture
def restore_original_path():
"""
Temporary restore a standard path environnement. This allow
to run external binaries.
"""
os.environ["PATH"] = "/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
yield
os.environ["PATH"] = tempfile.mkdtemp()
@pytest.fixture(scope="session")
def loop(request):
"""Return an event loop and destroy it at the end of test"""