Story: Fix test collection errors (nostr, telegram optional imports) #103
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Competitor
Kind/Documentation
Kind/Enhancement
Kind/Epic
Kind/Feature
Kind/Security
Kind/Story
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Scope/Core
Scope/Cross-Plugin
Scope/Plugin-System
Scope/Single-Plugin
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ultanio/cobot#103
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Epic: #101
Description
Nostr and telegram plugin tests fail to collect because they import modules (
pynostr,telegram) at module level without guarding for optional dependencies.Errors
nostr/tests/test_plugin.py—ModuleNotFoundError: No module named 'pynostr'telegram/tests/test_plugin.py—ModuleNotFoundError: No module named 'telegram'Acceptance Criteria
pytest --collect-onlysucceeds with no errors (all test files collected)pytest.importorskip()or@pytest.mark.skipifruff check cobot/passes