관리-도구
편집 파일: test_autogen_fks.cpython-311.pyc
� �܋f�� � �� � d dl mZ d dl mZ d dl mZ d dl mZ d dl mZ d dl mZ ddlmZ d d l m Z d dl mZ d dl mZ d d l m Z d dl mZ G d� dee� � Z G d� dee� � Z G d� dee� � ZdS )� )�Column)�ForeignKeyConstraint)�Integer)�MetaData)�String)�Table� )�AutogenFixtureTest� )�combinations)�config��eq_)�mock)�TestBasec �p � e Zd ZdZdZd� Zd� Zd� Zd� Zd� Z d� Z ej j d � � � Zd � Zd� ZdS ) �AutogenerateForeignKeysTestT)�!foreign_key_constraint_reflectionc � � t � � }t � � }t d|t dt d� � d�� � � � t d|t dt d�� � t dt d � � d �� � t dt d� � d �� � t dt d� � � � t dgdg� � � � t d|t dt d� � d�� � � � t d|t dt d�� � t dt d � � d �� � t dt d� � d �� � t dt d� � � � � � | � ||� � }| � |d dddgddgd�� � d S )N� some_table�test� T��primary_key�user�id�name�2 F��nullable�a1�x��server_default�test2�some_table.testr � remove_fk�servergenerated��conditional_name�r r r r r r �_fixture�_assert_fk_diff��self�m1�m2�diffss �w/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/alembic/testing/suite/test_autogen_fks.py�test_remove_fkz*AutogenerateForeignKeysTest.test_remove_fk s� � � �Z�Z�� �Z�Z�� ����6�6�"�:�:�4�8�8�8� � � � ����4��d�3�3�3��6�6�"�:�:��6�6�6��4�����C�8�8�8��7�F�2�J�J�'�'� �'��->�,?�@�@� � � � ����6�6�"�:�:�4�8�8�8� � � � ����4��d�3�3�3��6�6�"�:�:��6�6�6��4�����C�8�8�8��7�F�2�J�J�'�'� � � � � � �b�"�%�%������!�H��� �I�� �H�.� � � � � � � c �� � t � � }t � � }t d|t dt d�� � t dt d� � � � � � t d|t dt d�� � t dt d � � d �� � t dt d� � d �� � t dt d� � � � � � t d|t dt d�� � t dt d� � � � � � t d|t dt d�� � t dt d � � d �� � t dt d� � d �� � t dt d� � � � t dgdg� � � � | � ||� � }| � |d dddgddg� � d S )Nr r Tr r r r r r Fr r! r"