You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
(venv) PS C:\git\serverless> [System.Environment]::OSVersion.Version
Major Minor Build Revision
----- ----- ----- --------
10 0 22000 0
(venv) PS C:\git\serverless> systeminfo /fo csv | ConvertFrom-Csv |selectOS*, System*, Hotfix*| Format-List
OS Name : Microsoft Windows 11 Pro
OS Version : 10.0.22000 N/A Build 22000
OS Manufacturer : Microsoft Corporation
OS Configuration : Standalone Workstation
OS Build Type : Multiprocessor Free
System Boot Time : 9/1/2022, 9:45:04 AM
System Manufacturer : Dell Inc.
System Model : Precision 5550
System Type : x64-based PC
System Directory : C:\WINDOWS\system32
System Locale : en-us;English (United States)
Hotfix(s) : 5 Hotfix(s) Installed.,[01]: KB5016594,[02]: KB5007575,[03]: KB5012170,[04]: KB5016629,[05]: KB5015898
(venv) PS C:\git\serverless> python --version
Python 3.9.12
The text was updated successfully, but these errors were encountered:
Magic methods that are supported but not setup by default in MagicMock are:
__subclasses__
__dir__
__format__
__get__, __set__ and __delete__
__reversed__ and __missing__
__reduce__, __reduce_ex__, __getinitargs__, __getnewargs__, __getstate__ and __setstate__
__getformat__ and __setformat__
python
Python 3.11.0a6 (main, Mar 8 2022, 17:42:42) [GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from unittest.mock import MagicMock
>>> m = MagicMock()
>>> f"{m:.2f}"
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported format string passed to MagicMock.__format__
>>> m.__format__ = lambda obj, format_spec: repr(obj)
>>> f"{m:.2f}"
"<MagicMock id='140674518595792'>"
Bug report
pip listfrom the virtual environment you are usingDescription and Example
Adding a decorator for timing sync/async functions in my python projects , when running pytest a error arises
time_it.pyand adding some unit tests with pytest for it
test_time_it_.pyrunning pytest i get this result
Dependencies
OS version running pytest
The text was updated successfully, but these errors were encountered: