Commit Graph

31 Commits

Author SHA1 Message Date
Christian Clauss 57f36ac6f8
Ruff is now compatible with Python pattern matching (#3650) 2023-03-13 22:45:06 +01:00
Roman Yurchak c85e00806b
MAINT Switch to pytest-pyodide (#2893)
Co-authored-by: ryanking13 <def6488@gmail.com>
2022-07-31 19:00:45 +09:00
Hood Chatham 36dee13657
MAINT run_in_pyodide function should take selenium fixture as an explicit argument (#2617)
This updates run_in_pyodide to assume that the first argument of the function will be a selenium fixture.
2022-05-25 19:47:43 -07:00
Hood Chatham 1eab80ea40
MAINT Add pytest.mark.xfail_browsers and use it to reduce boilerplate (#2616)
Use a decorator to indicate which browsers we want to xfail test. 
This works for `run_in_pyodide` as well as normal tests.
2022-05-25 13:34:40 -07:00
Hood Chatham 8ed430d300
Allow using other decorators with `@run_in_pyodide` (#2541)
Allow using `pytest.mark.xfail`, `pytest.mark.parametrize`, hypothesis,
and other decorators in `run_in_pyodide` tests
2022-05-25 10:31:26 -07:00
Gyeongjae Choi b20b43bd66
MAINT Split conftest.py into modules (#2418) 2022-05-08 16:52:08 +09:00
Henry Schreiner 66856a7427
MAINT isort (#2200) 2022-02-21 23:27:03 +01:00
Hood Chatham a206386564
Fix numpy comparator functions (#2110) 2022-01-16 15:52:34 -08:00
Gyeongjae Choi aee73e72b3
Add tests for errors resolved after fpcast removal (#2028) 2021-12-10 19:21:37 -08:00
Hood Chatham f0bd568a31
Set up pytest node tests (#1717) 2021-07-20 10:48:27 +02:00
Hood Chatham 46eee26ff8
Various improvements in core (#1673) 2021-07-01 10:47:44 -07:00
Hood Chatham c05c1cac78
Eliminate pyproxy leaks (#1616) 2021-06-07 09:23:47 +02:00
Hood Chatham ffa99153cc
API Remove loadPackagesFromImports from runPythonAsync (#1538) 2021-04-28 08:47:00 +02:00
Roman Yurchak e8ca3e2552
MAINT Update to Firefox 87 in tests (#1209) 2021-04-19 09:06:22 +02:00
Hood Chatham 4c315c7c2f
Change conversion behavior for TypedArrays (#1322) 2021-04-15 23:46:39 -07:00
Hood Chatham 03b1928311
Rework python2js_buffer (#1376) 2021-04-08 21:51:20 -07:00
Hood Chatham ce3f80ac7c
Fixes to getBuffer (#1399) 2021-04-02 11:39:54 -07:00
Roman Yurchak da8a17335d
MAINT Faster and more reliable WebWorker tests (#1404) 2021-04-02 09:07:25 +02:00
Hood Chatham fd88a18ca3
API Add PyProxyBufferMethods (#1215) 2021-03-26 15:59:06 -07:00
Roman Yurchak f2d6137673
Deprecate pyodide.pyimport (#1367) 2021-03-24 12:05:00 +01:00
Hood Chatham 47018e0e61
Fixed various minor issues in python2js (#1248) 2021-02-25 20:44:59 +01:00
Hood Chatham 4d213a6b6e
ENH PyProxy getattr/etc traps & added getitem/etc for PyMappings (#1175) 2021-02-23 20:25:10 +01:00
Hood Chatham 3c5db381cd
Rename deepCopyToJavascript -> toJs & rm shallowCopyToJavascript (#1231) 2021-02-11 22:02:15 +01:00
Hood Chatham b3a965a1f6
Don't automatically copy python objects into javascript (#1167)
* Don't automatically copy python objects into javascript, add new PyProxy.shallowCopyToJavascript and deepCopyToJavascript apis

* Lint

* Adjust conftest to automatically deep_copy results of run / run_async

* Update conftest again

* Fix deep/shallowCopyToJavascript

* Fix shallowCopyToJavascript and deepCopyToJavascript to return js object not hiwire id

* Fix the remaining tests (hopefully)

* Lint

* Fix more tests

* Fix some numpy tests

* Lint

* Fix more tests

* Lint

* Temporarily dummy out setLineDash since it breaks test

* Fix test_console

* Update changelog
2021-02-02 19:45:56 +01:00
Jan Max Meyer 81810a4c4b
Revert "Don't automatically copy python objects into javascript (#1152)" (#1165)
This reverts commit 6a44233562.
2021-01-22 18:22:31 +01:00
Hood Chatham 6a44233562
Don't automatically copy python objects into javascript (#1152)
* Don't automatically copy python objects into javascript, add new PyProxy.shallowCopyToJavascript and deepCopyToJavascript apis

* Lint

* Adjust conftest to automatically deep_copy results of run / run_async

* Update conftest again

* Fix deep/shallowCopyToJavascript

* Fix shallowCopyToJavascript and deepCopyToJavascript to return js object not hiwire id

* Fix the remaining tests (hopefully)

* Lint

* Fix more tests

* Fix some numpy tests

* Lint

* Fix more tests

* Lint

* Temporarily dummy out setLineDash since it breaks test
2021-01-22 12:28:22 +01:00
Hood Chatham 816aaa01ce
MAINT: Update conftest to check PyErr_Occurred (#1113) 2021-01-13 16:20:01 +08:00
Hood Chatham 2266ccf743
BUGFIX: If python2js_buffer fails, python2js leaves the error flag in an invalid state (#1111) 2021-01-12 13:29:21 +08:00
Roman Yurchak db9f12826f
Split build for core and packages in CI pipeline (#828) 2020-12-11 16:47:47 +01:00
Roman Yurchak 9afc7a1617
STY Apply black for code style (#702)
* Apply black

* A few fixes

* Relax flake8 checks

* Exclude tools/file_packager.py from black
2020-06-28 20:24:40 +02:00
Roman Yurchak 2cf8639973 MAINT Move package tests under packages/ dir (#471)
* Move package tests under the packages/ folder

* Fix tests
2019-06-19 14:26:08 -04:00