(wdriver)
| 1 | def test_inject_module_basic(wdriver): |
| 2 | wdriver.execute_script( |
| 3 | """ |
| 4 | const vm = rp.vmStore.init("vm") |
| 5 | vm.injectModule( |
| 6 | "mod", |
| 7 | ` |
| 8 | __all__ = ['get_thing'] |
| 9 | def get_thing(): return __thing() |
| 10 | `, |
| 11 | { __thing: () => 1 }, |
| 12 | true |
| 13 | ) |
| 14 | vm.execSingle( |
| 15 | ` |
| 16 | import mod |
| 17 | assert mod.get_thing() == 1 |
| 18 | ` |
| 19 | ); |
| 20 | """ |
| 21 | ) |
nothing calls this directly
no test coverage detected