관리-도구
편집 파일: test_update_delete.cpython-311.pyc
� �܋f� � � � d dl mZ d dl mZ d dlmZ d dlmZ d dlmZ ddl mZ ddl m Z G d � d ej � � ZdZdS ) � )�config)�fixtures)�eq_)�Column)�Table� )�Integer)�Stringc �N � e Zd ZdZdZed� � � Zed� � � Zd� Zd� Z dS )�SimpleUpdateDeleteTest�eachTc � � t d|t dt d�� � t dt d� � � � � � d S )N�plain_pk�idT)�primary_key�data�2 )r r r r )�cls�metadatas �~/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/sqlalchemy/testing/suite/test_update_delete.py� define_tablesz$SimpleUpdateDeleteTest.define_tables sI � � ����4��d�3�3�3��6�6�"�:�:�&�&� � � � � � c � � |� | j j � � � ddd�ddd�ddd�g� � d S )N� �d1)r r r �d2r �d3)�execute�tablesr �insert)r � connections r �insert_dataz"SimpleUpdateDeleteTest.insert_data s^ � �����J��&�&�(�(��$�'�'��$�'�'��$�'�'� � � � � � r c �� � | j j }t j � |� � � � |j j dk � � d�� � }|j rJ �|j rJ �t t j � |� � � � |j j � � � � � � � g d�� � d S )Nr �d2_new)r )�r r )r r$ �r r )r r r �dbr �update�where�cr � is_insert�returns_rowsr �select�order_by�fetchall��self�t�rs r �test_updatez"SimpleUpdateDeleteTest.test_update"