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

get_playlist: join multiple title runs #667

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

sgvictorino
Copy link
Contributor

  • Return complete titles when split on time-like strings:
>>> yt.get_playlist("PLaZPMsuQNCsWn0iVMtGbaUXO6z-EdZaZm")["title"]
-03 Jan
+03 Jan 12:09
  • test_get_playlist: assert more props have the expected value/shape

Copy link

codecov bot commented Dec 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.84%. Comparing base (db732f2) to head (8569596).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #667      +/-   ##
==========================================
- Coverage   94.88%   94.84%   -0.05%     
==========================================
  Files          38       38              
  Lines        2289     2289              
==========================================
- Hits         2172     2171       -1     
- Misses        117      118       +1     
Flag Coverage Δ
unittests 94.84% <ø> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

(
"2024_03_get_playlist.json",
{
"id": "PLaZPMsuQNCsWn0iVMtGbaUXO6z-EdZaZm",
Copy link
Owner

Choose a reason for hiding this comment

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

I appreciate the improved test fidelity. Could you move the expected output into files, just like the input? Maybe in a subdirectory next to the input files.

@sigma67
Copy link
Owner

sigma67 commented Dec 17, 2024

@sgvictorino you may have forgotten to git add the files :)

* Return complete titles when split on time-like strings:

```diff
>>> yt.get_playlist("PLaZPMsuQNCsWn0iVMtGbaUXO6z-EdZaZm")["title"]
-03 Jan
+03 Jan 12:09
```

* `test_get_playlist`: assert more props have the expected value/shape
@sgvictorino
Copy link
Contributor Author

Sorry about that!

@sigma67 sigma67 merged commit 7441114 into sigma67:main Dec 17, 2024
5 checks passed
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.

2 participants