
    e                         d dl mZmZ d dlmZmZ  G d de          Z G d de          Z G d de          Z G d	 d
e          Z	 G d de          Z
dS )    )CurveStore)
IPTestCasenotebook_extensionc                   (     e Zd Z fdZ fdZ xZS )TestDisplayHooksc                     t                                                       t          j        st          d| j                   t
          j        | _        | j        t
          _        d S )N
matplotlib)ip)	supersetUpr   _loadedr   r   display_formatsbackupformatself	__class__s    Ilib/python3.11/site-packages/holoviews/tests/ipython/test_displayhooks.pyr   zTestDisplayHooks.setUp   sN    !) 	9|8888+ $    c                     d t           j                                        D             t           _        | j                            dd           | `| j        t           _        dt          _        t                      
                                 d S )Nc                     i | ]}|i S  r   ).0ks     r   
<dictcomp>z-TestDisplayHooks.tearDown.<locals>.<dictcomp>   s     L L L!2 L L Lr   
unload_extzholoviews.ipythonF)r   _custom_optionskeysr   run_line_magicr   display_hooksr   r   r   tearDownr   s    r   r"   zTestDisplayHooks.tearDown   su     L Lu/D/I/I/K/K L L L|-@AAAG"k%*"r   )__name__
__module____qualname__r   r"   __classcell__r   s   @r   r   r      sQ        , , , , ,        r   r   c                   $     e Zd Z fdZd Z xZS )TestHTMLDisplayc                 X    dg| _         t                                                       d S )Nhtmlr   r   r   r   s    r   r   zTestHTMLDisplay.setUp   s!    hr   c                     t          g d          }t          j        |          \  }}dh}|                     t	          |          |           d S )N         	text/htmlr   r   renderassertEqualsetr   curvedatametadata
mime_typess        r   test_store_render_htmlz&TestHTMLDisplay.test_store_render_html   O    iii  e,,h!]
TJ/////r   )r#   r$   r%   r   r<   r&   r'   s   @r   r)   r)      G            0 0 0 0 0 0 0r   r)   c                   $     e Zd Z fdZd Z xZS )TestPNGDisplayc                 X    dg| _         t                                                       d S )Npngr,   r   s    r   r   zTestPNGDisplay.setUp&   !    gr   c                     t          g d          }t          j        |          \  }}dh}|                     t	          |          |           d S )Nr.   	image/pngr3   r7   s        r   test_store_render_pngz$TestPNGDisplay.test_store_render_png*   r=   r   )r#   r$   r%   r   rF   r&   r'   s   @r   r@   r@   $   r>   r   r@   c                   $     e Zd Z fdZd Z xZS )TestSVGDisplayc                 X    dg| _         t                                                       d S )Nsvgr,   r   s    r   r   zTestSVGDisplay.setUp3   rC   r   c                     t          g d          }t          j        |          \  }}dh}|                     t	          |          |           d S )Nr.   image/svg+xmlr3   r7   s        r   test_store_render_svgz$TestSVGDisplay.test_store_render_svg7   sP    iii  e,,h%&
TJ/////r   )r#   r$   r%   r   rM   r&   r'   s   @r   rH   rH   1   r>   r   rH   c                   $     e Zd Z fdZd Z xZS )TestCombinedDisplayc                 Z    g d| _         t                                                       d S )N)r+   rJ   rB   r,   r   s    r   r   zTestCombinedDisplay.setUp@   s%    ,,,r   c                     t          g d          }t          j        |          \  }}h d}|                     t	          |          |           d S )Nr.   >   rE   r2   rL   r3   r7   s        r   test_store_render_combinedz.TestCombinedDisplay.test_store_render_combinedD   sS    iii  e,,h@@@
TJ/////r   )r#   r$   r%   r   rR   r&   r'   s   @r   rO   rO   >   r>   r   rO   N)	holoviewsr   r   holoviews.ipythonr   r   r   r)   r@   rH   rO   r   r   r   <module>rU      s   " " " " " " " " < < < < < < < <    z   $
0 
0 
0 
0 
0& 
0 
0 
0
0 
0 
0 
0 
0% 
0 
0 
0
0 
0 
0 
0 
0% 
0 
0 
0
0 
0 
0 
0 
0* 
0 
0 
0 
0 
0r   