← Back
Editing: selenium.cpython-311.pyc
� �|�e � �� � d dl Z d dlZd dlmZ d dlmZmZ d dlmZ d dl m Z d dlmZ G d� d e e� � � � Z ed � � G d � dee�� � � � ZdS ) � N)�contextmanager)�LiveServerTestCase�tag)� classproperty�� import_string)�capfirstc � � � e Zd Zg ZdZdZdZdZ� fd�Ze d� � � Z e d� � � Ze d� � � Zd� Z d� Z� xZS ) �SeleniumTestCaseBaseNFc �^ �� t � � � | |||� � }|j s+t d� |� � � D � � � � s|S |j r�|j d }||_ |j s|j nd}||_ | j |_ t j |j }|j dd� D ]Q}| � | t |� � �|��|f||| j |j d�� � } t || j | � � �R|S t j d� � |� � S )z� Dynamically create new classes and add them to the test module when multiple browsers specs are provided (e.g. --selenium=firefox,chrome). c 3 �d K � | ]+\ }}|� d � � ot |� � V � �,dS )�testN)� startswith�callable)�.0�name�values �6/usr/lib/python3/dist-packages/django/test/selenium.py� <genexpr>z/SeleniumTestCaseBase.__new__.<locals>.<genexpr> s@ � � � �(v�(v�Yd�Y]�_d�����)@�)@�)T�X�e�_�_�(v�(v�(v�(v�(v�(v� r z0.0.0.0� N)�browser�host� external_host� __module__zNo browsers specified.)�super�__new__r �any�items�browsers�selenium_hubr r �sys�modulesr r �setattr�__name__�unittest�skip)�clsr �bases�attrs� test_class� first_browserr �moduler �browser_test_class� __class__s �r r zSeleniumTestCaseBase.__new__ s[ �� � �W�W�_�_�S�$��u�=�=� ��� �S�(v�(v�hm�hs�hs�hu�hu�(v�(v�(v�%v�%v� ��� � � � '�/��2�M�!.�J��*4�*A�P�:�?�?�y�D�"�J�O�'*�'8�J�$� �[��!6�7�F�%�.�q�r�r�2� Q� Q��%(�[�[��&�w�/�/�/���6��M�#*� $�),�):�&0�&;� � � &� &�"� �� 2� ;�=O�P�P�P�P���6�x�}�5�6�6�z�B�B�Br c �&