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

Add tests to verify handling of expected URL types #58

Merged
merged 3 commits into from
Jan 1, 2024
Merged

Conversation

dgw
Copy link
Member

@dgw dgw commented Oct 23, 2023

That is, verify e.g. https://youtu.be/VIDEO_ID triggers the video-info callable, /playlist?list=PLblahblah triggers the playlist info callable, and so on. (There is no functional testing, only making sure that each URL type matches the right callable.)

Based on #56, so it starts as a draft.

  • Add info about tests to the README or add a CONTRIBUTING document.
    Pushing this will also force GH to reevaluate which commits are "new" after merging Handle /live/VIDEO_ID links #56.

dgw and others added 2 commits October 22, 2023 21:03
Shamelessly copied and adapted my own previous work on sopel-reddit.

I'm not 100% convinced that handling `/watch?v=...&list=...` is covered
in the least-fragile way possible. The order in which Sopel matches
callables isn't guaranteed to be stable or deterministic, so I really
don't like checking match 0 against expected rule 0, etc.
With advice from Exirel, The One and Only (use sets, duh).

Co-authored-by: Exirel <florian.strzelecki@gmail.com>
@dgw dgw added this to the 0.6.0 milestone Oct 23, 2023
@dgw dgw marked this pull request as ready for review October 25, 2023 23:35
@dgw
Copy link
Member Author

dgw commented Oct 25, 2023

GitHub apparently does not, in fact, reevaluate the branch point from master on every push. Sigh.

@dgw dgw changed the base branch from master to temp_master October 25, 2023 23:37
@dgw dgw changed the base branch from temp_master to master October 25, 2023 23:37
@dgw dgw merged commit 02262b7 into master Jan 1, 2024
@dgw dgw deleted the url-tests branch January 1, 2024 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant