관리-도구
편집 파일: test_autogen_computed.cpython-38.pyc
U 0?�f � @ s� 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 dd� dee�ZdS )� N)�Column)�Integer)�MetaData)�Table� )�AutogenFixtureTest� )�testing)�config)�eq_)� exclusions)�is_)�is_true)�mock)�TestBasec @ s� e Zd ZdZdZdd� Zdd� Ze�dd� d d� d d� dd� �e j jdd � ��Ze�dd� dd� dd� dd� dd� e j j f�dd� �Ze j jdd� �ZdS )�AutogenerateComputedTest)Zcomputed_columnsTc C s� t � }t � }td|tdtdd�� td|tdtdd�tdtt�d��� | �||�}t|d d d� t|d d d� t|d d jd� |d d j }t t|tj�� t|j d � tt|j�d� d S )N�user�idT�Zprimary_key�foo�5r � add_column� r )r r r r �sa�Computed�_fixturer �name�computedr � isinstancer � persisted�strZsqltext��self�m1�m2�diffs�c� r'