Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tests marked with NoRequest still make requests #4829

@harshil21

Description

@harshil21

Steps to Reproduce

I don't know why, but I get httpxConnect Errors almost every time I run tests locally, this even happens with -m no_req.

While it was known while implementing this (#3407), that NoRequest classes can still make requests indirectly (e.g. calling a fixture which makes requests), we need to catch more violating classes, such as TestAnimationNoRequest, whose animation fixture makes requests.

Expected behaviour

No requests should be made

Actual behaviour

requests are made

Operating System

invariant

Version of Python, python-telegram-bot & dependencies

irrelevant

Relevant log output

Additional Context

No response

Metadata

Metadata

Assignees

Labels

⚙️ testsaffected functionality: tests

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions