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

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy