Skip to content

Commit

Permalink
Add make_napari_viewer cross ref
Browse files Browse the repository at this point in the history
  • Loading branch information
DragaDoncila committed Apr 17, 2024
1 parent d56bfb1 commit 574f341
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/developers/architecture/app_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/developers/contributing/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ def test_something_else(qtbot):
...
```

(make_napari_viewer)=
#### `make_napari_viewer`

We provide a
Expand Down

0 comments on commit 574f341

Please sign in to comment.