Skip to content

tests: fix session init #5799

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

Merged
merged 1 commit into from
Jan 27, 2024

Conversation

bastimeyer
Copy link
Member

In preparation for the session initialization rewrite using the plugins JSON data...

Despite there being the session pytest fixture for initializing a Streamlink session object without loading any plugins, lots of tests are currently still manually initializing the session, which leads to all plugins being loaded every time. This slows down the tests significantly. On my local system, these changes improve the run time from ~15s to ~10s.

The upcoming plugins JSON data implementation will make lots of changes to the Streamlink class, so patching the load_builtin_plugins() method won't be necessary anymore in the tests afterwards.

@bastimeyer bastimeyer merged commit 617044d into streamlink:master Jan 27, 2024
@bastimeyer bastimeyer deleted the tests/fix-session-init branch January 27, 2024 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant