Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor/ocp_utils #216

Merged
merged 6 commits into from
Jan 8, 2024
Merged

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 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
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
10 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