1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
|
Description: disable unittest, which need a server
Author: Martin <debacle@debian.org>
Origin: debian
Last-Update: 2025-04-02
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/test/server/test_simulator_api.py
+++ b/test/server/test_simulator_api.py
@@ -142,6 +142,7 @@
await task
await simulator.stop()
+ @pytest.mark.skip
@pytest.mark.asyncio
async def test_registers_json_valid(self, client, simulator):
"""Test the /restapi/registers endpoint with valid parameters."""
@@ -176,6 +177,7 @@
assert "count_read" in json_response["register_rows"][0]
assert "count_write" in json_response["register_rows"][0]
+ @pytest.mark.skip
@pytest.mark.asyncio
async def test_registers_json_invalid_params(self, client, simulator):
"""Test the /restapi/registers endpoint with invalid parameters."""
@@ -196,6 +198,7 @@
assert "error" in json_response
assert json_response["error"] == "Invalid range parameters"
+ @pytest.mark.skip
@pytest.mark.asyncio
async def test_registers_json_non_existent_range(self, client, simulator):
"""Test the /restapi/registers endpoint with a non-existent range."""
@@ -223,6 +226,7 @@
assert json_response["register_rows"][2]["index"] == "7"
assert json_response["register_rows"][2]["type"] == "bits"
+ @pytest.mark.skip
@pytest.mark.asyncio
async def test_registers_json_set_value(self, client, simulator):
"""Test the /restapi/registers endpoint with a set value request."""
@@ -265,6 +269,7 @@
assert json_response["register_rows"][0]["index"] == "16"
assert json_response["register_rows"][0]["value"] == "1234"
+ @pytest.mark.skip
@pytest.mark.asyncio
async def test_registers_json_set_invalid_value(self, client, simulator):
"""Test the /restapi/registers endpoint with an invalid set value request."""
@@ -298,6 +303,7 @@
("response_junk_datalen", 1),
("response_clear_after", 1),
])
+ @pytest.mark.skip
@pytest.mark.asyncio
async def test_calls_json_simulate(self, client, simulator, response_type, call):
"""
@@ -331,6 +337,7 @@
assert json_response["result"] == "ok"
+ @pytest.mark.skip
@pytest.mark.asyncio
async def test_calls_json_simulate_reset_no_simulation(self, client, simulator):
"""
@@ -351,6 +358,7 @@
json_response = await resp.json()
assert json_response["result"] == "ok"
+ @pytest.mark.skip
@pytest.mark.asyncio
async def test_calls_json_simulate_reset_with_simulation(self, client, simulator):
"""Test the /restapi/calls endpoint with a reset request after a simulation."""
@@ -385,6 +393,7 @@
json_response = await resp.json()
assert json_response["result"] == "ok"
+ @pytest.mark.skip
@pytest.mark.asyncio
async def test_log_json_download(self, client, simulator):
"""
@@ -405,6 +414,7 @@
json_response = await resp.json()
assert json_response["error"] == "log endpoint not implemented"
+ @pytest.mark.skip
@pytest.mark.asyncio
async def test_log_json_monitor(self, client, simulator):
"""
@@ -425,6 +435,7 @@
json_response = await resp.json()
assert json_response["error"] == "log endpoint not implemented"
+ @pytest.mark.skip
@pytest.mark.asyncio
async def test_log_json_clear(self, client, simulator):
"""
@@ -445,6 +456,7 @@
json_response = await resp.json()
assert json_response["error"] == "log endpoint not implemented"
+ @pytest.mark.skip
@pytest.mark.asyncio
async def test_server_json_restart(self, client, simulator):
"""
|