Dashboard minor refactor and first unit tests (#8705)

This commit is contained in:
Max Fitton
2020-06-03 09:04:55 -07:00
committed by GitHub
parent b37a162076
commit b9f0f7ae5b
9 changed files with 369 additions and 297 deletions
+7
View File
@@ -49,6 +49,13 @@ def _ray_start(**kwargs):
ray.shutdown()
@pytest.fixture
def ray_start_with_dashboard(request):
param = getattr(request, "param", {})
with _ray_start(num_cpus=1, include_webui=True, **param) as address_info:
yield address_info
# The following fixture will start ray with 0 cpu.
@pytest.fixture
def ray_start_no_cpu(request):