Skip to content

Commit

Permalink
add test for validation of the plugin package's manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
vreuter committed Apr 28, 2024
1 parent 1f73322 commit 6b1d70b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ linting = [
]
testsuite = [
"hypothesis >= 6.92.1",
"npe2",
"pytest >= 7.1.0",
"pytest-cov >= 5.0.0",
"typer",
]

[tool.codespell]
Expand Down
12 changes: 12 additions & 0 deletions tests/test_manifest_validation.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""Test that the plugin will be able to be used by Napari."""

import npe2.cli
import pytest
import typer


def test_plugin_package_manifest_is_valid():
try:
npe2.cli.validate("looptrace-regionals-vis")
except typer.Exit as e:
pytest.fail(f"Manifest validation failed: {e}")

0 comments on commit 6b1d70b

Please sign in to comment.