Unskip some tests, delete others (#1742)

Clean up a bit the testsuite and integration tests.
Highlights:

- Some of the @skipped tests just worked -- I unskipped them
- some worked after some small tweak to adapt to the new pyscript next
- some are still skipped, but I tweaked the skip message to be more precise and descriptive
- Moreover, I killed/removed the ones which no longer make sense in the context of pyscript next; in particular, I removed all the ones which tested Element (which is now gone) and the one which tested py-config features which are no longer needed (e.g., multiple interpreters).

The testsuite passes locally.
This commit is contained in:
Antonio Cuni
2023-09-25 16:14:20 +00:00
committed by GitHub
parent 801c63947a
commit b9a1227e47
9 changed files with 39 additions and 557 deletions

View File

@@ -126,7 +126,7 @@ def filter_page_content(lines, exclude=None):
@pytest.mark.usefixtures("init")
@with_execution_thread("main", "worker")
@with_execution_thread("main") # , "worker") # XXX re-enable workers eventually
class PyScriptTest:
"""
Base class to write PyScript integration tests, based on playwright.
@@ -179,6 +179,7 @@ class PyScriptTest:
# create a symlink to BUILD inside tmpdir
tmpdir.join("build").mksymlinkto(BUILD)
self.tmpdir.chdir()
self.tmpdir.join('favicon.ico').write("")
self.logger = logger
self.execution_thread = execution_thread
self.dev_server = None