This conditional might be a problem now that `reload_settings(view)` happens after the test. Perhaps just move `view.is_scratch()` into the previous `if` and keep `reload_settings(view)` just before this conditional.