FS#71066 - [python-pytest-mock] missing dependency python-mock
Attached to Project:
Community Packages
Opened by George Rawlinson (rawlinsong) - Monday, 31 May 2021, 01:20 GMT
Last edited by Jelle van der Waa (jelly) - Sunday, 03 September 2023, 16:10 GMT
Opened by George Rawlinson (rawlinsong) - Monday, 31 May 2021, 01:20 GMT
Last edited by Jelle van der Waa (jelly) - Sunday, 03 September 2023, 16:10 GMT
|
Details
Description: If mock_use_standalone_module is set to true in
pytest.ini, pytest fails with module not found error.
Additional info: * Upstream documentation: https://github.com/pytest-dev/pytest-mock/#use-standalone-mock-package Steps to reproduce: * Set mock_use_standalone_module = true in pytest.ini and watch it all burn down. Possible solution: Set python-mock as a runtime dependency, OR an optional dependency. |
This task depends upon
Closed by Jelle van der Waa (jelly)
Sunday, 03 September 2023, 16:10 GMT
Reason for closing: Won't implement
Additional comments about closing: It's 2023, python's builtin mock should be used. We are actively trying to get rid of python-mock in our repos.
Sunday, 03 September 2023, 16:10 GMT
Reason for closing: Won't implement
Additional comments about closing: It's 2023, python's builtin mock should be used. We are actively trying to get rid of python-mock in our repos.
https://pytest-mock.readthedocs.io/en/latest/configuration.html#use-standalone-mock-package