[serve] Make sure test_imported_backend is ran (#15043)

This commit is contained in:
Simon Mo 2021-03-31 12:32:45 -07:00 committed by GitHub
parent 79a6aa97b7
commit 57256b456a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,3 +36,9 @@ def test_imported_backend(serve_instance):
serve.create_endpoint("imported_func", backend="imported_func")
handle = serve.get_handle("imported_func")
assert ray.get(handle.remote("hello")) == "hello"
if __name__ == "__main__":
import sys
import pytest
sys.exit(pytest.main(["-v", "-s", __file__]))