
    
g=                     V   d dl Z d dlZd dlZd dlmZ d dlmZ e j         dZdZ	 ej
        eej        d          d             Z ej
        eej        e	          d	             Z ej
        eej        e	          d
             Z ej
        eej        e	          d             ZdS )    N)mock)update_manpagez.openz,test
.TH "date" "version" "description"
thisz.TH invalid)new_callable	read_datac                     t          ddd           |                                   |             j                                         d S )Nqrcodez1.23namenew_versionr   assert_calledwriteassert_not_called	mock_files    K/var/www/api/venv/lib/python3.11/site-packages/qrcode/tests/test_release.pytest_invalid_datar      sK    HV<<===IKK'')))))    c                 P    t          ddi           |                                  d S )Nr
   z
not-qrcode)r   r   r   s    r   test_not_qrcoder      s-    FL)***!!!!!r   c                     t          ddd           |                                   |             j                                         d S )Nr   versionr	   r   r   s    r   test_no_changer      sK    HY??@@@IKK'')))))r   c                    t          ddd           t          j        dt                    dd d         }|d                             dd                              dt
          j                                                            d	                    |d<    |             j        	                    d
 |D             d           d S )Nr   z3.11r	   z([^\n]*(?:\n|$))      r   datez	%-d %b %Yc                 B    g | ]}|d k    t          j        |          S ) )r   call).0lines     r   
<listcomp>ztest_change.<locals>.<listcomp>*   s%    <<<T4r   T)	any_order)
r   resplitDATAreplacedatetimenowstrftimer   assert_has_calls)r   expecteds     r   test_changer.       s    HV<<===x+T2214a48H	F	#	#	*..0099+FF	G	G QK
 IKK&&<<X<<< '     r   )builtinsr)   r%   unittestr   qrcode.releaser   __name__OPENr'   patch	mock_openr   r   r   r.    r   r   <module>r7      s)     				       ) ) ) ) ) )

"""7 Dt~GGG* * HG* Dt~>>>" " ?>"
 Dt~>>>* * ?>* Dt~>>>
 
 ?>
 
 
r   