mirror of
https://github.com/pyscript/pyscript.git
synced 2026-02-13 07:01:00 -05:00
Simplify tests with pytest-playwright (#523)
* Simplify tests with pytest-playwright * Add pytest-playwright to pip * Fix simple_clock example * Attempt to make example tests more robust * Make pre-commit happy * Revert accidental change to simple_clock pyscript resources * Another attempt at reducing flakeyness * Do not wait until page load event is fired * Remove pointless py-config Co-authored-by: mariana <marianameireles@protonmail.com>
This commit is contained in:
@@ -14,13 +14,6 @@
|
||||
- paths:
|
||||
- ./utils.py
|
||||
</py-env>
|
||||
<py-config>
|
||||
autoclose_loader: false
|
||||
runtimes:
|
||||
- src: "https://cdn.jsdelivr.net/pyodide/v0.20.0/full/pyodide.js"
|
||||
name: pyodide-0.20
|
||||
lang: python
|
||||
</py-config>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@@ -42,7 +35,7 @@ async def foo():
|
||||
while True:
|
||||
await asyncio.sleep(1)
|
||||
output = now()
|
||||
pyscript.write("outputDiv2", output)
|
||||
Element("outputDiv2").write(output)
|
||||
|
||||
out3 = Element("outputDiv3")
|
||||
if output[-1] in ["0", "4", "8"]:
|
||||
|
||||
Reference in New Issue
Block a user