Skip to content

Test the Dashboard extension of the template with PluginExtensionChecks - #65

Merged
seb5g merged 1 commit into
5.3.xfrom
chore/template-plugin-extension-checks
Oct 30, 2026
Merged

seb5g merged 1 commit into
5.3.xfrom
chore/template-plugin-extension-checks

Conversation

@seb5g

@seb5g seb5g commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Before:
The template ships a Dashboard extension (CustomExtensionTemplate) but its tests did not load it, and AGENTS.md did not mention how to test an extension.

After:
tests/test_plugin_extensions.py subclasses PluginExtensionChecks (PyMoDAQ 5.3.7): each extension of the extensions folder is loaded in an empty Dashboard and closed. AGENTS.md has a short "Testing a Dashboard extension" paragraph (loaded_extension). The pymodaq floor is raised to 5.3.7, where the checks exist (check_template_versions.py reports the versions as consistent).

How: the test file skips itself when PyMoDAQ is older than 5.3.7 or not installed, like the package structure test.

Tested: pytest tests with PyMoDAQ from the 5.3.x monorepo, offscreen, PySide6 6.11.2: 18 passed, including the extension load and close. Not tested: PyQt5 / PyQt6 locally (CI matrix), and a plugin created from the template with real instruments.


Generated by Claude Code

@seb5g
seb5g merged commit 6fd0426 into 5.3.x Oct 30, 2026
8 checks passed
@seb5g
seb5g deleted the chore/template-plugin-extension-checks branch October 30, 2026 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants