Skip to content

Debt: Fix log mocking  #12567

@ericholscher

Description

@ericholscher

In readthedocs/rtd_tests/tests/test_oauth.py You shouldn't need to mock the log calls, since you are already mocking session, you should be able to inspect the call in session.post. Alternatively, you can use requests_mock.

Originally posted by @stsewd in #12563 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions