관리-도구
편집 파일: test_autogen_computed.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 ddl mZ ddl mZ ddl mZ G d� dee� � ZdS )� N)�Column)�Integer)�MetaData)�Table� )�AutogenFixtureTest� )�testing)�config)�eq_)� exclusions)�is_)�is_true)�mock)�TestBasec � � e Zd ZdZdZd� Zd� Z ej d� d� d� d� � � e j j d � � � � � Z ej d � d� d� d � e j j f� � d� � � Ze j j d� � � ZdS )�AutogenerateComputedTest)�computed_columnsTc �� � t � � }t � � }t d|t dt d�� � � � t d|t dt d�� � t dt t j 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 t |j � � d� � d S )N�user�idT��primary_key�foo�5r � add_column� r )r r r r �sa�Computed�_fixturer �name�computedr � isinstancer � persisted�str�sqltext��self�m1�m2�diffs�cs �|/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/alembic/testing/suite/test_autogen_computed.py�test_add_computed_columnz1AutogenerateComputedTest.test_add_computed_column s2 � � �Z�Z�� �Z�Z�� �f�b�&��w�D�A�A�A�B�B�B� ����4��d�3�3�3��5�'�2�;�s�#3�#3�4�4� � � � � � �b�"�%�%���E�!�H�Q�K��&�&�&��E�!�H�Q�K�� � � ��E�!�H�Q�K��e�$�$�$��!�H�Q�K� ��� �1�b�k�*�*�+�+�+��A�K������C�� �N�N�C� � � � � � c �H � t � � }t � � }t d|t dt d�� � t dt t j d� � � � � � t d|t dt d�� � � � | � ||� � }t |d d d� � t |d d d� � |d d }t |j d� � t j j j r-t t |j t j � � � � nt! |j d � � t j j j rZt t |j t j � � � � t t) |j j j � � d� � d S t j j j r.t t |j t j � � � � d S t! |j d � � d S )Nr r Tr r r r � remove_columnr r )r r r r r r r r r! r �requirements�computed_reflects_normally�enabledr r# r"