pytest-pyodide
pytest-pyodide copied to clipboard
Pytest plugin for testing applications that use Pyodide
This fixes some reflection tools. If we define a class A in the test, 1. `A.__module__` is no longer `"builtins"` 2. `sys.modules[A.__module__].__dict__` points back to our current global scope 3....
# What I'd like: A way that given a pyodide wheel, I can run tests from it (e.g. from a test subpackage), have the list of tests extracted, then each...
updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.6.0) - https://github.com/charliermarsh/ruff-pre-commit → https://github.com/astral-sh/ruff-pre-commit - [github.com/astral-sh/ruff-pre-commit: v0.0.254 → v0.5.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.254...v0.5.0) - [github.com/psf/black: 23.1.0 → 24.4.2](https://github.com/psf/black/compare/23.1.0...24.4.2) - [github.com/pre-commit/mirrors-mypy: v1.1.1 → v1.10.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.1.1...v1.10.1) - [github.com/shellcheck-py/shellcheck-py: v0.9.0.2 → v0.10.0.1](https://github.com/shellcheck-py/shellcheck-py/compare/v0.9.0.2...v0.10.0.1)...
This makes `run_tests_inside_pyodide` work via fixtures and removes the custom `get_browser` setup. It also moves some logic from `hook.py` into `decorator.py` and `run_tests_inside_pyodide`.
I cannot work out if there's any way to use coverage with this? If not, it would be great if there was a way - we have coverage available in...
Seems that #121 removed some stuff that we still need.
Selenium runners take a desired capabilities option, which allows you to do things like turn off https verification of certificates. I can see we have access to Options, so I...
The Circle CI tests `test-packages--no-numpy-dependents` [fail with the error](https://app.circleci.com/pipelines/github/pyodide/pyodide/5912/workflows/1f99d729-7e16-4ab7-8386-59199b731ae6/jobs/74925): ```bash =================================== FAILURES =================================== _____________________________ test_peewee[chrome] ______________________________ /usr/local/lib/python3.11/site-packages/pytest_pyodide/decorator.py:107: in _decode raise ModuleNotFoundError( E ModuleNotFoundError: There was a problem with unpickling the...
Hi, Thank you for pytest-pyodide. **Context:** I'm trying to run some "normal" tests inside Pyodide with PyTest and Chrome. **Problem:** no matter what I put into the test functions (e.g....
Now in https://github.com/pyodide/pytest-pyodide/pull/80 (that just updates linting) we start to see the issue about picklability of InternalError. I think this is likely related to changes in pyodide 0.23.0 @hoodmane for...