Skip to content

feat: add SerialReadError to errors in samps module#3

Merged
michealroberts merged 1 commit intomainfrom
feature/errors/SerialReadError
May 6, 2025
Merged

feat: add SerialReadError to errors in samps module#3
michealroberts merged 1 commit intomainfrom
feature/errors/SerialReadError

Conversation

@michealroberts
Copy link
Owner

feat: add SerialReadError to errors in samps module

@michealroberts michealroberts added the enhancement New feature or request label May 6, 2025
@michealroberts michealroberts requested a review from Copilot May 6, 2025 11:15
@michealroberts michealroberts self-assigned this May 6, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new exception class, SerialReadError, to the samps module along with corresponding unit tests.

  • Introduces the SerialReadError class in src/samps/errors.py.
  • Adds unit tests in test/test_errors.py to verify its behavior.
  • Updates src/samps/init.py to export the new error.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
test/test_errors.py Unit tests to verify error inheritance and messages.
src/samps/errors.py Implements the new SerialReadError exception class.
src/samps/init.py Exports SerialReadError via the module’s public API.
Comments suppressed due to low confidence (1)

test/test_errors.py:15

  • [nitpick] The test class name 'TestSerialReadErrorError' appears redundant; consider renaming it to 'TestSerialReadError' for clarity.
class TestSerialReadErrorError(unittest.TestCase):

feat: add SerialReadError to errors in samps module
@michealroberts michealroberts force-pushed the feature/errors/SerialReadError branch from 049c550 to c6fd589 Compare May 6, 2025 11:18
@michealroberts michealroberts merged commit 3e76586 into main May 6, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants