
    7j                         d Z ddlmZ ddlmZ  ej
                  ddddg d	       ej                  d
ej                  j                  j                  rdnd      d               Z
y)z]QMK Python Unit Tests

QMK script to run unit and integration tests against our python code.
    )DEVNULL)cli-tz--testTappendztMapped to nose2 'testNames' positional argument - https://docs.nose2.io/en/latest/usage.html#specifying-tests-to-run)arg_onlyactiondefaulthelpzQMK Python Unit TestsF)hiddenc                      | j                   ddddg| j                  j                  dt              } | j                   ddgdt              }|j                  |j                  z  S )z*Run several linting/testing commands.
    nose2z-vr   z
lib/pythonF)capture_outputstdinflake8)runargstestr   
returncode)r   r   r   s      G/home/hanthebot/chat/keyboard/qmk_firmware/lib/python/qmk/cli/pytest.pypytestr   
   s`    
 CGGWdD,GGX]elmESWWh-e7SFu////    N)__doc__
subprocessr   milcr   argument
subcommandconfiguser	developerr    r   r   <module>r!      sn      dHtHb  PF  G'9R9RX\]0 ^ G0r   