(base_app, request)
| 144 | |
| 145 | |
| 146 | def test_run_pyscript_stop(base_app, request) -> None: |
| 147 | # Verify onecmd_plus_hooks() returns True if any commands in a pyscript return True for stop |
| 148 | test_dir = os.path.dirname(request.module.__file__) |
| 149 | |
| 150 | # help.py doesn't run any commands that return True for stop |
| 151 | python_script = os.path.join(test_dir, "pyscript", "help.py") |
| 152 | stop = base_app.onecmd_plus_hooks(f"run_pyscript {python_script}") |
| 153 | assert not stop |
| 154 | |
| 155 | # stop.py runs the quit command which does return True for stop |
| 156 | python_script = os.path.join(test_dir, "pyscript", "stop.py") |
| 157 | stop = base_app.onecmd_plus_hooks(f"run_pyscript {python_script}") |
| 158 | assert stop |
| 159 | |
| 160 | |
| 161 | def test_run_pyscript_environment(base_app, request) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…