8000 these two tests work now · pyscript/pyscript@588eda8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 588eda8

Browse files
committed
these two tests work now
1 parent 53b5476 commit 588eda8

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

pyscript.core/tests/integration/test_02_display.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -342,9 +342,6 @@ def test_display_HTML(self):
342342
assert out.inner_html() == "<p>hello world</p>"
343343
assert out.inner_text() == "hello world"
344344

345-
# waiit_for_pyscript is broken: it waits until the python code is about to
346-
# start, to until the python code has finished execution
347-
@pytest.mark.skip("FIXME: wait_for_pyscript is broken")
348345
def test_image_display(self):
349346
self.pyscript_run(
350347
"""
@@ -357,7 +354,8 @@ def test_image_display(self):
357354
plt.plot(xpoints, ypoints)
358355
display(plt)
359356
</script>
360-
"""
357+
""",
358+
timeout=30*1000,
361359
)
362360
wait_for_render(self.page, "*", "<img src=['\"]data:image")
363361
test = self.page.wait_for_selector("img")

pyscript.core/tests/integration/test_script_type.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ def test_script_type_py_src_attribute(self):
8181
)
8282
assert self.console.log.lines[-1] == "hello from foo"
8383

84-
@pytest.mark.skip("FIXME: wait_for_pyscript is broken")
8584
def test_script_type_py_worker_attribute(self):
8685
self.writefile("foo.py", "print('hello from foo')")
8786
self.pyscript_run(

0 commit comments

Comments
 (0)
0