| Server IP : 121.121.20.254 / Your IP : 216.73.217.51 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:/Python312/Lib/idlelib/idle_test/__pycache__/ |
Upload File : |
�
���g� � �F � d Z ddlmZ ddlZddlmZ ddlmZ ddlm Z ddl
Z
ddlZ G d� d� Z e� Z
G d � d
� Z e� Z G d� dej � Z G d
� dej e� Z G d� dej � Zedk( r ej* d�� yy)a !Changing this line will break Test_findfile.test_found!
Non-gui unit tests for grep.GrepDialog methods.
dummy_command calls grep_it calls findfiles.
An exception raised in one method will fail callers.
Otherwise, tests are mostly independent.
Currently only test grep_it, coverage 51%.
� )�grepN)�captured_stdout)�ExtraAssertions)�Varc � � e Zd ZdZd� Zy)�Dummy_searchenginez�GrepDialog.__init__ calls parent SearchDiabolBase which attaches the
passed in SearchEngine instance as attribute 'engine'. Only a few of the
many possible self.engine.x attributes are needed here.
c � � | j S �N)�_pat��selfs �0C:\Python312\\Lib\idlelib\idle_test\test_grep.py�getpatzDummy_searchengine.getpat s � ��y�y�� N)�__name__�
__module__�__qualname__�__doc__r � r r r r s � ��r r c �R � e Zd Zej j
Z ed� ZeZ d� Z
y)�
Dummy_grepFc � � y r
r r s r �closezDummy_grep.close# s � �r N)r r r r �
GrepDialog�grep_itr �recvar�searchengine�enginer r r r r r s&