Closed jhanley634 closed 1 month ago
This pull request focuses on cleaning up the timer functionality and improving test coverage. The changes include renaming an endpoint, adding a new test case, and making minor adjustments to improve code quality and consistency.
sequenceDiagram
actor User
participant App
participant TimerModule as Timer Module
User->>App: GET /demo/timer
App->>TimerModule: Call stop_watch()
TimerModule-->>App: Return HTMLResponse
App-->>User: Display timer in seconds
classDiagram
class ClockDisplay {
+clock_display() str
+clock_reading() str
+stop_watch() str
}
class ClockDisplayTest {
+test_clock_display() void
+test_stop_watch() void
}
ClockDisplayTest --> ClockDisplay
Change | Details | Files |
---|---|---|
Renamed the stop watch endpoint from '/demo/stop_watch' to '/demo/timer' |
|
src/bboard/main.py |
Added a new test case for the stop_watch function |
|
tests/clock_display_test.py |
Now it lints clean, and
$ make test
reports 100% code coverage.Summary by Sourcery
Clean up the timer functionality by adding a test for the stop_watch function and renaming the endpoint to /demo/timer for improved clarity. Ensure the codebase is lint-free and achieves 100% test coverage.
New Features:
Enhancements:
Tests: