Skip to content

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