| Server IP : 121.121.20.254 / Your IP : 216.73.217.141 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python315/Lib/idlelib/idle_test/__pycache__/ |
Upload File : |
R
>lqj� c �T � Q s ] QHGs Q Q2 s Q Q2 s Q Q2 sP! )zqMock classes that imitate idlelib modules or classes.
Attributes and methods will be added as needed for tests.
)�Textc �6 ` � \ sQ s]s n QsQQ ksQ sQsU sP! )�Funca2 Record call, capture args, return/raise result set by test.
When mock function is called, set or use attributes:
self.called - increment call number even if no args, kwds passed.
self.args - capture positional arguments.
self.kwds - capture keyword arguments.
self.result - return or raise value set in __init__.
self.return_self - return self instead, to mock query class return.
Most common use will probably be to mock instance methods.
Given class instance, can set and delete as instance attribute.
Mock_tk.Var and Mbox_func are special variants of this.
c �J � ] U m Vm V m PU m PU m P! )� )�called�result�return_self�args�kwds)�selfr r s &&&�0C:\Python315\\Lib\idlelib\idle_test\mock_idle.py�__init__�
Func.__init__ s"