python-mocket icon indicating copy to clipboard operation
python-mocket copied to clipboard

Feature request: allow specifying exceptions to strict mode

Open ento opened this issue 1 year ago • 0 comments

I'm trying to use a library that sends test stats to a remote server in the background [1], and tests that use Mocket in strict mode would fail intermittently when the library tries to make an HTTP request. I'd like to use strict mode to ensure no unexpected requests are made against the service a test is testing, while allowing test stats to be sent to the remote server.

A similar feature is supported (or may get supported) by some other libraries for mocking out HTTP requests when testing:

[1]: ddtrace, which sends telemetry data to Datadog's CI Visibility intake server

ento avatar Jan 14 '24 19:01 ento