Spaces:
Running
Running
Delete test for unused API that creates a file called "test" in wrong place.
Browse files
lynxkite-app/tests/test_main.py
CHANGED
@@ -27,38 +27,6 @@ def test_get_catalog():
|
|
27 |
assert response.status_code == 200
|
28 |
|
29 |
|
30 |
-
def test_save_and_load():
|
31 |
-
save_request = {
|
32 |
-
"path": "test",
|
33 |
-
"ws": {
|
34 |
-
"env": "test",
|
35 |
-
"nodes": [
|
36 |
-
{
|
37 |
-
"id": "Node_1",
|
38 |
-
"type": "basic",
|
39 |
-
"data": {
|
40 |
-
"display": None,
|
41 |
-
"input_metadata": None,
|
42 |
-
"error": "Unknown operation.",
|
43 |
-
"title": "Test node",
|
44 |
-
"params": {"param1": "value"},
|
45 |
-
},
|
46 |
-
"position": {"x": -493.5496596237119, "y": 20.90123252513356},
|
47 |
-
"width": 100,
|
48 |
-
"height": 100,
|
49 |
-
}
|
50 |
-
],
|
51 |
-
"edges": [],
|
52 |
-
},
|
53 |
-
}
|
54 |
-
response = client.post("/api/save", json=save_request)
|
55 |
-
saved_ws = response.json()
|
56 |
-
assert response.status_code == 200
|
57 |
-
response = client.get("/api/load?path=test")
|
58 |
-
assert response.status_code == 200
|
59 |
-
assert saved_ws == response.json()
|
60 |
-
|
61 |
-
|
62 |
def test_list_dir():
|
63 |
test_dir = pathlib.Path() / str(uuid.uuid4())
|
64 |
test_dir.mkdir(parents=True, exist_ok=True)
|
|
|
27 |
assert response.status_code == 200
|
28 |
|
29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
def test_list_dir():
|
31 |
test_dir = pathlib.Path() / str(uuid.uuid4())
|
32 |
test_dir.mkdir(parents=True, exist_ok=True)
|