Skip to content

Commit

Permalink
[data] Skip tests locally if moto server is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
ericl authored Nov 3, 2021
1 parent c0eeb36 commit 398d4cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/ray/data/tests/mock_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

def start_service(service_name, host, port):
moto_svr_path = shutil.which("moto_server")
if not moto_svr_path:
pytest.skip("moto not installed")
args = [moto_svr_path, service_name, "-H", host, "-p", str(port)]
# For debugging
# args = '{0} {1} -H {2} -p {3} 2>&1 | \
Expand Down

0 comments on commit 398d4cb

Please sign in to comment.