관리-도구
편집 파일: test_autogen_identity.cpython-311.pyc
� �܋f� � � � d dl Zd dl mZ d dl mZ d dl mZ d dl mZ ddlmZ dd lm Z dd l m Z ddl mZ ddl mZ dd l m Z G d� dee � � ZdS )� N)�Column)�Integer)�MetaData)�Table� )�AutogenFixtureTest� )�testing)�config)�eq_)�is_true)�TestBasec � � e Zd ZdZdZd� Zd� Zd� Z ej d e d�� � f e d�� � df e d�� � e dd � � � f e d�� � e d�� � f e d ddd�� � e d ddd�� � f e ddd�� � e dd d�� � f� � ej j d� � � � � Zd� Zd� Zd� ZdS )�AutogenerateIdentityTest)�identity_columnsTc �� � t � � }t � � }t d|t dt j � � � � t d|t dt j � � t dt t j dd�� � d�� � � � | � ||� � }t |d d d � � t |d d d� � t |d d j d� � |d d j }t t |t j � � � � t |j d� � t |j d� � d S ) N�user�other�id� � ��start� incrementT��primary_keyr � add_column� r )r r r �sa�Textr �Identity�_fixturer �name�identityr � isinstancer r )�self�m1�m2�diffs�is �|/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/alembic/testing/suite/test_autogen_identity.py�test_add_identity_columnz1AutogenerateIdentityTest.test_add_identity_column s7 � � �Z�Z�� �Z�Z�� �f�b�&��"�'�2�2�3�3�3� ����7�B�G�$�$������!�q�1�1�1� � � � � � � � � � �b�"�%�%���E�!�H�Q�K��&�&�&��E�!�H�Q�K�� � � ��E�!�H�Q�K��d�#�#�#��!�H�Q�K� ��� �1�b�k�*�*�+�+�+��A�G�Q�����A�K������� c �v � t � � }t � � }t d|t dt t j dd�� � d�� � � � t d|� � | � ||� � }t |d d d � � t |d d d� � |d d }t |j d� � t t |j t j � � � � t |j j d� � t |j j d� � d S ) Nr r r r r Tr r � remove_column)r r r r r r! r"