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):
         """
