# HG changeset patch
# User Edouard Tisserant <edouard.tisserant@gmail.com>
# Date 1710487478 -3600
# Node ID 050f227a2848b48cccc7e795c836282d0bc0ff01
# Parent  ec3c7e76f69455a37fe7ce434ad66ab55cfa3d49
Tests: update svghmi test project to py3 and erpc

diff -r ec3c7e76f694 -r 050f227a2848 tests/projects/svghmi/beremiz.xml
--- a/tests/projects/svghmi/beremiz.xml	Wed Mar 13 08:38:21 2024 +0100
+++ b/tests/projects/svghmi/beremiz.xml	Fri Mar 15 08:24:38 2024 +0100
@@ -1,5 +1,5 @@
 <?xml version='1.0' encoding='utf-8'?>
-<BeremizRoot xmlns:xsd="http://www.w3.org/2001/XMLSchema" URI_location="PYRO://127.0.0.1:61427">
+<BeremizRoot xmlns:xsd="http://www.w3.org/2001/XMLSchema" URI_location="ERPC://127.0.0.1">
   <TargetType/>
   <Libraries Enable_SVGHMI_Library="true"/>
 </BeremizRoot>
diff -r ec3c7e76f694 -r 050f227a2848 tests/projects/svghmi/py_ext_0@py_ext/pyfile.xml
--- a/tests/projects/svghmi/py_ext_0@py_ext/pyfile.xml	Wed Mar 13 08:38:21 2024 +0100
+++ b/tests/projects/svghmi/py_ext_0@py_ext/pyfile.xml	Fri Mar 15 08:24:38 2024 +0100
@@ -30,12 +30,12 @@
     def render_POST(self, request):
         newstr = request.content.getvalue()
         newdata = json.loads(newstr)
-        args = newdata[u'args']
-        range_feedback = newdata[u'range']
-        slider_position = newdata[u'position']
-        visible = newdata[u'visible']
-        extra = newdata[u'extra']
-        options = newdata[u'options']
+        args = newdata['args']
+        range_feedback = newdata['range']
+        slider_position = newdata['position']
+        visible = newdata['visible']
+        extra = newdata['extra']
+        options = newdata['options']
 
         if len(options) == 1 :
             action, = options
@@ -49,7 +49,7 @@
 
         answer = self.renderTable(range_feedback, slider_position, visible, extra)
         janswer = json.dumps(answer)
-        return janswer
+        return janswer.encode()
 
     def renderTable(self, old_range, old_position, visible, extra):
         if len(extra) > 0 and extra[0] != "":