(base_app)
| 913 | |
| 914 | |
| 915 | def test_debug_not_settable(base_app) -> None: |
| 916 | # Set debug to False and make it unsettable |
| 917 | base_app.debug = False |
| 918 | base_app.remove_settable("debug") |
| 919 | |
| 920 | # Cause an exception by setting editor to None and running edit |
| 921 | base_app.editor = None |
| 922 | _out, err = run_cmd(base_app, "edit") |
| 923 | |
| 924 | # Since debug is unsettable, the user will not be given the option to enable a full traceback |
| 925 | assert err == ["ValueError: Please use 'set editor' to specify your text editing program of", "choice."] |
| 926 | |
| 927 | |
| 928 | def test_blank_exception(mocker, base_app): |
nothing calls this directly
no test coverage detected
searching dependent graphs…