-
-
Notifications
You must be signed in to change notification settings - Fork 974
Description
Description
Pyodide's test suite uses pytest-pyodide
's spawn_web_server
function to serve files for in-browser tests. This tight coupling between the Pyodide core and pytest-pyodide makes it difficult to evolve the APIs of pytest-pyodide without breaking Pyodide's test suite.
Proposed Solution
We should deprecate the use of spawn_web_server
in Pyodide's core test suite and migrate to pytest-httpserver
. This approach offers a cleaner, more standard way to serve files during testing.
All remaining instances of spawn_web_server in the Pyodide test suite should be replaced with pytest-httpserver to handle file serving. This will reduce coupling and align Pyodide's testing infrastructure with a more robust and purpose-built tool.
References
-
Pyodide test codes that are using
spawn_web_server
: -
How to use pytest-httpserver in Pyodide: