diff --git a/docs/developers/architecture/app_model.md b/docs/developers/architecture/app_model.md index 2267cd02..e76e1800 100644 --- a/docs/developers/architecture/app_model.md +++ b/docs/developers/architecture/app_model.md @@ -485,7 +485,7 @@ singleton `app` may keep a reference to an object, e.g., a {class}`~napari._qt.qt_main_window.Window`, that has since been cleaned up at the end of a previous test. Thus, we mock the `app` in a `_mock_app` fixture, and -explicitly use it in `make_napari_viewer` as well as in all tests that +explicitly use it in [`make_napari_viewer`](make_napari_viewer) as well as in all tests that use the `get_app` function. This way, a new instance of `app` is returned every time {func}`~napari._app_model.get_app` is used inside a test. This 'test' `app` is available for use throughout the test's diff --git a/docs/developers/contributing/testing.md b/docs/developers/contributing/testing.md index 174eaadf..2e9b9320 100644 --- a/docs/developers/contributing/testing.md +++ b/docs/developers/contributing/testing.md @@ -240,6 +240,7 @@ def test_something_else(qtbot): ... ``` +(make_napari_viewer)= #### `make_napari_viewer` We provide a