Skip to content

Conversation

NeonJarbas
Copy link
Contributor

refactor/ocp_models

move the MediaType and Playlist model to utils so they can be reused across ovos modules

skills will then be able to return these objects directly in the ocp decorators

@NeonJarbas NeonJarbas force-pushed the refactor/ocp_models branch from 745059b to fa712e9 Compare January 8, 2024 04:43
@NeonJarbas NeonJarbas marked this pull request as ready for review January 8, 2024 04:43
@JarbasAl JarbasAl added the enhancement New feature or request label Jan 8, 2024
Copy link

codecov bot commented Jan 8, 2024

Codecov Report

Attention: 141 lines in your changes are missing coverage. Please review.

Comparison is base (26dfca6) 39.30% compared to head (780906a) 41.54%.
Report is 2 commits behind head on dev.

Files Patch % Lines
ovos_utils/ocp.py 31.70% 140 Missing ⚠️
ovos_utils/version.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #216      +/-   ##
==========================================
+ Coverage   39.30%   41.54%   +2.23%     
==========================================
  Files          31       31              
  Lines        2801     3004     +203     
==========================================
+ Hits         1101     1248     +147     
- Misses       1700     1756      +56     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

move the MediaType and Playlist model to utils so they can be reused across ovos modules

skills will then be able to return these objects directly in the ocp decorators
@NeonJarbas NeonJarbas force-pushed the refactor/ocp_models branch from 65fb862 to 451432c Compare January 8, 2024 05:00
np = [m3, m, m2]
assert p == np
assert np == p
assert p == p.entries
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO convert these into unittests

@NeonJarbas NeonJarbas mentioned this pull request Jan 8, 2024
@JarbasAl JarbasAl merged commit 220857b into OpenVoiceOS:dev Jan 8, 2024
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.

None yet

2 participants