Skip to content

Make *WithoutRequest tests actually not use the network - #5304

Open
harshil21 wants to merge 6 commits into
masterfrom
no-fixture-req-tests
Open

Make *WithoutRequest tests actually not use the network#5304
harshil21 wants to merge 6 commits into
masterfrom
no-fixture-req-tests

Conversation

@harshil21

@harshil21 harshil21 commented Jul 23, 2026

Copy link
Copy Markdown
Member

Closes #4829

This PR largely adds a new counterpart to existing fixtures like animation. The offline_* fixture is introduced which as the name suggests, just creates an object and returns it without accessing the internet. Additionally pytest-socket was also added to enforce this in case you accidentally make a fixture use the network inside a *WithoutRequest test class.

I also disabled the flaky report entirely instead of just suppressing the successful ones. I've never found the flaky reports to be useful at all. It just clutters the test screen.

We can actually run tests without requests and it doesn't take forever!

@harshil21 harshil21 added this to the v23 milestone Jul 23, 2026
@harshil21
harshil21 requested a review from aelkheir July 23, 2026 04:07
@harshil21 harshil21 added the ⚙️ tests affected functionality: tests label Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚙️ tests affected functionality: tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tests marked with NoRequest still make requests

1 participant