[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1059380: RFP: python-pytest-socket -- pytest plugin to disable all network calls flowing through Python's socket interface



Package: wnpp
Severity: wishlist

* Package name    : python-pytest-socket
  Version         : 0.6.0
  Upstream Contact: Mike Fiedler <miketheman@gmail.com>
* URL             : https://github.com/miketheman/pytest-socket
* License         : MIT/X
  Programming Lang: Python
  Description     : pytest plugin to disable all network calls flowing through Python's socket interface

Run pytest --disable-socket, tests should fail on any access to socket
or libraries using socket with a SocketBlockedError.

I am packaging some other package and, in order to run the unit tests, I
need pytest-socket.

I've seen some other packages disabling the unit tests because
pytest-socket is not available, e.g.: https://sources.debian.org/src/twine/4.0.2-1/debian/patches/no-pytest-socket/?hl=3#L3


Reply to: