관리-도구
편집 파일: test_dialect.cpython-38.pyc
U -?�f�Y � @ s� d dl Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ dd lmZ dd lmZ ddlm Z ddlm Z dd lmZ ddlm Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z G dd � d ej!�Z"G d!d"� d"ej!�Z#G d#d$� d$ej$�Z%G d%d&� d&ej!�Z&G d'd(� d(ej$�Z'G d)d*� d*ej!�Z(G d+d,� d,ej!�Z)G d-d.� d.ej*e)�Z+G d/d0� d0ej!�Z,G d1d2� d2ej$�Z-dS )3� N� )�testing� )� assert_raises)�config)�engines)�eq_)�fixtures)�is_not_none)�is_true)�ne_)�provide_metadata)� expect_raises)�expect_raises_message)�requirements)� set_default_schema_on_connection)�Column)�Table� )� bindparam)�dialects)�event)�exc)�Integer)�literal_column)�select)�String)�Compiled)�inspect_getfullargspecc @ s e Zd ZdZdd� ZdS )�PingTestTc C s0 t j�� �}tt jj�|jj�� W 5 Q R X d S �N)r �db�connectr �dialectZdo_ping� connection�dbapi_connection)�self�conn� r( �U/opt/hc_python/lib64/python3.8/site-packages/sqlalchemy/testing/suite/test_dialect.py�test_do_ping+ s �zPingTest.test_do_pingN)�__name__� __module__�__qualname__�__backend__r* r( r( r( r) r ( s r c @ s: e Zd ZdZdd� Zejee� �d�dd� �Zdd� Z d S ) �ArgSignatureTesta� test that all visit_XYZ() in :class:`_sql.Compiler` subclasses have ``**kw``, for #8988. This test uses runtime code inspection. Does not need to be a ``__backend__`` test as it only needs to run once provided all target dialects have been imported. For third party dialects, the suite would be run with that third party as a "--dburi", which means its compiler classes will have been imported by the time this test runs. c c sR t jD ]} | �d�st�d| � qtg}|rN|�d�}|�|�� � |V q*d S )N�_zsqlalchemy.dialects.%sr ) r �__all__� startswith� importlib� import_moduler �pop�extend�__subclasses__)�d�stack�clsr( r( r) �_all_subclasses@ s z ArgSignatureTest._all_subclasses)�paramsc c s |j V d S r )�param)r&