U
    |hP                     @   sJ   d dl mZ d dlmZmZ d dlmZ d dlmZ G dd deeZ	dS )    )TestCase)RemoveStreamChildrenOperationRenameStreamChildrenOperation)models)MigrationTestMixinc                   @   s.   e Zd ZejZdZdd Zdd Zdd Z	dS )	MigrationNameTestZ*wagtail_streamfield_migration_toolkit_testc                 C   s6   t ddddfg}| j|d}| }| |d d S )Nchar1renamed1Zold_namenew_name operations_and_block_pathZrename_char1_to_renamed1)r   init_migrationsuggest_nameassertEqualselfr   Z	migrationZsuggested_name r   /var/www/dating/data/www/fatepal.com/env/lib/python3.8/site-packages/wagtail/tests/streamfield_migrations/test_migration_names.pytest_rename   s    
zMigrationNameTest.test_renamec                 C   s4   t dddfg}| j|d}| }| |d d S )Nr   namer   r   Zremove_char1)r   r   r   r   r   r   r   r   test_remove   s    zMigrationNameTest.test_removec                 C   sB   t ddddftdddfg}| j|d}| }| |d d S )	Nr   r	   r
   r   r   Zsimplestructr   Z%rename_char1_to_renamed1_remove_char1)r   r   r   r   r   r   r   r   r   test_multiple+   s    

zMigrationNameTest.test_multipleN)
__name__
__module____qualname__r   Z
SamplePagemodelZapp_namer   r   r   r   r   r   r   r      s
   r   N)
Zdjango.testr   Z$wagtail.blocks.migrations.operationsr   r   Z#wagtail.test.streamfield_migrationsr   Z-wagtail.test.streamfield_migrations.testutilsr   r   r   r   r   r   <module>   s   