
    .i                     4    d dl Zd dlZd dlmZ  G d d      Zy)    N)	DataFramec                   `    e Zd Zej                  j                  dddg      d        Zd Zd Zy)TestCopyattrindexcolumnsc                     t        ||      }d |_        |j                         }dt        ||      _        t        ||      j                  J y )Nfoo)getattrnamecopy)selffloat_framer   indcps        b/var/www/app/trading-bot/venv/lib/python3.12/site-packages/pandas/tests/frame/methods/test_copy.pytest_copy_index_name_checkingz&TestCopy.test_copy_index_name_checking   sM     k4(!&D{D)..666    c                     |j                         }|d   |d<   d|vsJ |j                         }|j                  |j                  usJ y )NAE)r   _mgr)r   r   float_string_framecopr   s        r   	test_copyzTestCopy.test_copy   sT     s8C+%%% "&&(yy 2 7 7777r   c                 6   t        t        j                  j                  d      j	                  ddd      t        j                  j                  d      j	                  ddd      d      }t        d      D ]G  }t        j                  j                  d      j	                  ddd      |j                  d d d| f<   I t        |j                  j                        d	k(  sJ |j                         }t        |j                  j                        d
k(  sJ y )N   r   d   7   )size)ab
   n_      )r   nprandomdefault_rngintegersrangeloclenr   blocksr   )r   dfiresults       r   test_copy_consolidateszTestCopy.test_copy_consolidates   s    YY**1-66q#B6GYY**1-66q#B6G
 r 	UA"$))"7"7":"C"CAsQS"C"TBFF11#h;	U 277>>"b(((6;;%%&!+++r   N)	__name__
__module____qualname__pytestmarkparametrizer   r   r2    r   r   r   r      s4    [[Vgy%9:7 ;78,r   r   )numpyr'   r6   pandasr   r   r9   r   r   <module>r<      s      ", ",r   