mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-21 11:15:36 -05:00
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:
@@ -386,7 +386,7 @@ class TestPyRepl(PyScriptTest):
|
||||
self.pyscript_run(
|
||||
"""
|
||||
<div id="repl-target"></div>
|
||||
<py-script>
|
||||
<script type="py">
|
||||
import asyncio
|
||||
import js
|
||||
|
||||
@@ -402,7 +402,7 @@ class TestPyRepl(PyScriptTest):
|
||||
async def done():
|
||||
await asyncio.sleep(3)
|
||||
js.console.log("DONE")
|
||||
</py-script>
|
||||
</script>
|
||||
|
||||
<py-repl output="repl-target">
|
||||
asyncio.ensure_future(print_it());
|
||||
@@ -544,7 +544,7 @@ class TestPyRepl(PyScriptTest):
|
||||
|
||||
this_tag.setAttribute("output", "third")
|
||||
print("three.")
|
||||
</py-script>
|
||||
</script>
|
||||
"""
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user