-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tim Paine <[email protected]>
- Loading branch information
Showing
4 changed files
with
78 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import time | ||
|
||
import pytest | ||
import ray | ||
import requests | ||
|
||
from raydar import RayTaskTracker, setup_proxy_server | ||
|
||
|
||
class TestRayServer: | ||
def test_get_proxy_server(self, proxy_server): | ||
proxy_server.remote("new", "test_table", dict(a="string", b="integer", c="float", d="datetime")) | ||
time.sleep(2) | ||
proxy_server.remote("update", "test_table", [dict(a="foo", b=1, c=1.0, d=time.time())]) | ||
time.sleep(2) | ||
response = requests.get("http://localhost:8000/tables") | ||
assert eval(response.text) == ["test_table"] |