(selenium_module, mount_dir)
| 31 | |
| 32 | @run_in_pyodide |
| 33 | def create_test_file(selenium_module, mount_dir): |
| 34 | import sys |
| 35 | from importlib import invalidate_caches |
| 36 | from pathlib import Path |
| 37 | |
| 38 | p = Path(f"{mount_dir}/test_idbfs/__init__.py") |
| 39 | p.parent.mkdir(exist_ok=True, parents=True) |
| 40 | p.write_text("def test(): return 7") |
| 41 | invalidate_caches() |
| 42 | sys.path.append(mount_dir) |
| 43 | from test_idbfs import test |
| 44 | |
| 45 | assert test() == 7 |
| 46 | |
| 47 | create_test_file(selenium, mount_dir) |
| 48 | # sync TO idbfs |
no test coverage detected
searching dependent graphs…