Use <script type="py"> instead of <py-script> in most tests (#1723)

This is mostly a global search&replace, to replace <py-script> with <script type="py">.

The vast majority of tests just works, some needed some tweak.
This commit is contained in:
Antonio Cuni
2023-09-19 16:35:15 +00:00
committed by GitHub
parent f6decfd93d
commit 77b40aa348
20 changed files with 375 additions and 332 deletions

View File

@@ -14,11 +14,11 @@ class TestInterpreterAccess(PyScriptTest):
def test_interpreter_python_access(self):
self.pyscript_run(
"""
<py-script>
<script type="py">
x = 1
def py_func():
return 2
</py-script>
</script>
"""
)
@@ -74,11 +74,11 @@ class TestInterpreterAccess(PyScriptTest):
"""Test accessing Python objects from JS via pyscript.runtime"""
self.pyscript_run(
"""
<py-script>
<script type="py">
x = 1
def py_func():
return 2
</py-script>
</script>
"""
)