Skip to content

Add CoreNotification wrapper#373

Open
jmcte wants to merge 2 commits intoN4S4:masterfrom
OMT-Global:pr/core-notification
Open

Add CoreNotification wrapper#373
jmcte wants to merge 2 commits intoN4S4:masterfrom
OMT-Global:pr/core-notification

Conversation

@jmcte
Copy link
Copy Markdown
Contributor

@jmcte jmcte commented Apr 19, 2026

Summary

  • add the CoreNotification wrapper for SYNO.Core.Notification.* APIs
  • export the wrapper from synology_api.__init__
  • register CoreNotification in docs_status.yaml
  • add focused unit tests for request construction behavior

Test depth

The tests assert the actual request contract for representative methods instead of only checking that a call occurred. They verify API namespace, path, version, DSM method, params, optional parameter omission, and boolean conversion behavior. These tests use a fake request transport and do not require a live NAS.

Local checks

  • .venv/bin/python -m pytest tests/test_core_notification.py -q
  • .venv/bin/python -m scripts.docs_parser -a -l --exit-on-warning
  • .venv/bin/python -m pre_commit run --all-files

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.

1 participant