
     h	                        d Z ddlZddlZej                  j	                  ej                  j                  e      ej                  ej                        Zej                  j                  de       ddl
Z
ddlZ ej                  e      ZddlmZ g ZdZd Zd Zd Zd Zed	k(  r+ddlZ ej.                   eej0                  d
d  xs d       yy)z7passlib.tests.tox_support - helper script for tox tests    N)print_zpasslib.tests.test_handlersc                  Z   | st        t               yd}t        |       } 	 | d   dk(  rd| d   z   }| dd= nnddlm} t        |      D cg c]6  j                  d	      s#t        fd
| D              rt        dz   z   |z   8 }}t        dj                  |             | S c c}w )z6return list of hash algorithm tests that match regexesN r   z--method.      )test_handlers_c              3   J   K   | ]  }t        j                  |        y w)N)rematch).0argnames     [/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/passlib/tests/tox_support.py	<genexpr>z do_hash_tests.<locals>.<genexpr>*   s     0T#d1C0Ts    #:
)
printTH_PATHlistpasslib.testsr	   dir
startswithanyr   join)argssuffixr	   r   namess      ` r   do_hash_testsr       s    gF:D
7j 47]FRaR  ,7:=7I VtOOC(S0Tt0T-T s]T!F* VE V
499U9Vs   ;B(c                 n    | dk(  s| dk(  rt        dd       | dk(  rt        d       yyt        d| z        )z return list of preset test namesdjangozdjango-hasheszdjango_.*_testhex_md5_testzpasslib.tests.test_ext_djangozunknown name: %rN)r    r   
ValueError)r   s    r   do_preset_testsr%   .   sE    x4?2&7823  +d233    c                 d    ddl m}  |t        j                  j	                  | d      d|z         y)zEwrite fake GAE ``app.yaml`` to current directory so nosegae will workr   )set_filezapp.yamlzapplication: fake-app
version: 2
runtime: %s
api_version: 1
threadsafe: no

handlers:
- url: /.*
  script: dummy.py

libraries:
- name: django
  version: "latest"
N)passlib.tests.utilsr(   ospathr   )r+   runtimer(   s      r   do_setup_gaer-   7   s-    ,RWW\\$
+ . . r&   c                 (     t               d| z      | S )Ndo_)globals)cmdr   s     r   mainr2   J   s    !79US[!4((r&   __main__r   )__doc__r*   sysr+   r   dirname__file__pardirroot_dirinsertr   logging	getLogger__name__logpasslib.utils.compatr   __all__r   r    r%   r-   r2   exitargv r&   r   <module>rD      s    = 77<<1299biiH 8  
 'g''1 ( (&4&) zCHHT388AB< %A& r&   