
    \h                     \    S SK r S SKJr  S SKrS SKJrJrJr   " S S5      r " S S5      r	g)    N)List)make_absolute_path	sympy_dirupdate_args_with_pathsc                       \ rS rSr\\R                  R                  S/ SQ5      S\4S j5       5       r	\\R                  R                  SSS/5      S\4S j5       5       r
Srg	)
TestMakeAbsolutePath   partial_path)sympy
sympy/corezsympy/nonexistant_directoryc                     [        U 5      ng)z(Paths that start with `sympy` are valid.N)r   r
   _s     `/var/www/auris/envauris/lib/python3.13/site-packages/sympy/testing/tests/test_runtests_pytest.pytest_valid_partial_path,TestMakeAbsolutePath.test_valid_partial_path   s     |,    	not_sympyzalso/not/sympyc                     [         R                  " [        5         [        U 5      nSSS5        g! , (       d  f       g= f)z@A `ValueError` is raises on paths that don't start with `sympy`.N)pytestraises
ValueErrorr   r   s     r   ,test_invalid_partial_path_raises_value_errorATestMakeAbsolutePath.test_invalid_partial_path_raises_value_error   s&     ]]:&"<0A '&&s   0
> N)__name__
__module____qualname____firstlineno__staticmethodr   markparametrizestrr   r   __static_attributes__r   r   r   r   r      su    [[N-c - - [[&6713 1 1r   r   c            	       
   \ rS rSr\S 5       r\\R                  R                  SSS/5      S\	4S j5       5       r
\S 5       r\S 5       r\\R                  R                  S	S
S// SQ4/5      S\\	   S\\	   4S j5       5       r\\R                  R                  S/ S/S/S/S//5      S\\	   4S j5       5       r\\R                  R                  S/ S/S/S//5      S\\	   4S j5       5       r\S 5       r\S 5       rSrg)TestUpdateArgsWithPaths!   c                      / n [        U S/ S9n[        [        R                  " [	        5       S5      5      [        [        R                  " [	        5       S5      5      /nX:X  d   eg)a  If no paths are passed, only `sympy` and `doc/src` are appended.

`sympy` and `doc/src` are the `testpaths` stated in `pytest.ini`. They
need to be manually added as if any path-related arguments are passed
to `pytest.main` then the settings in `pytest.ini` may be ignored.

Npathskeywordsargsr   zdoc/srcr   r#   pathlibPathr   r*   r,   expecteds      r   test_no_paths%TestUpdateArgsWithPaths.test_no_paths#   sV     %EDrJY['23Y[)45
 r   pathsympy/core/tests/test_basic.py_basicc                 |    [        U /S/ S9n[        [        R                  " [	        5       S5      5      /nX:X  d   eg)z;Single files/paths, full or partial, are matched correctly.Nr)   r5   r-   )r4   r,   r1   s      r   test_one_file%TestUpdateArgsWithPaths.test_one_file4   s?     &TFTKY[*JKL
 r   c                  |    [        S/S/ S9n [        [        R                  " [	        5       S5      5      /nX:X  d   eg)z;Partial paths from the root directly are matched correctly.sympy/functionsNr)   r-   )r,   r1   s     r   test_partial_path_from_root3TestUpdateArgsWithPaths.test_partial_path_from_rootA   s>     &->,?$UWXY[2CDEFr   c                      SS/n [        U S/ S9n[        [        R                  " [	        5       S5      5      [        [        R                  " [	        5       S5      5      /nX:X  d   eg)z7Multiple paths, partial or full, are matched correctly.r5   r;   Nr)   r-   r0   s      r   test_multiple_paths_from_root5TestUpdateArgsWithPaths.test_multiple_paths_from_rootH   s^     23DE%EDrJY[*JKLY[*;<=
 r   zpaths, expected_pathsz/corez/util)zdoc/src/modules/utilitiesz"doc/src/reference/public/utilitiesr   zsympy/logic/utilitieszsympy/utilitiesr*   expected_pathsc                     [        U S/ S9n[        U5      [        U5      :X  d   e[        [        U5      U5       H  u  p4XC;   a  M   e   g)z-Multiple partial paths are matched correctly.Nr)   r   lenzipsorted)r*   rA   r,   argr1   s        r   !test_multiple_paths_from_non_root9TestUpdateArgsWithPaths.test_multiple_paths_from_non_rootS   sJ    $ &EDrJ4yC//// ~>MC?"? ?r   zsympy/physicszsympy/physics/mechanicszsympy/physics/mechanics/testsz+sympy/physics/mechanics/tests/test_kane3.pyc                     Sn[        X/ S9nS/n[        U5      [        U5      :X  d   e[        [        U5      U5       H  u  pEXT;   a  M   e   g)z&String keywords are matched correctly.)bicycler)   9sympy/physics/mechanics/tests/test_kane3.py::test_bicycleNrC   r*   r+   r,   expected_argsrG   r1   s         r   test_string_as_keyword.TestUpdateArgsWithPaths.test_string_as_keywordj   sU     !%E2NTU4yC.... }=MC?"? >r   r   zsympy/core/testsz sympy/core/tests/test_sympify.pyc                     Sn[        X/ S9nS/n[        U5      [        U5      :X  d   e[        [        U5      U5       H  u  pEXT;   a  M   e   g)z'Integer keywords are matched correctly.)3538r)   1sympy/core/tests/test_sympify.py::test_issue_3538NrC   rM   s         r   test_integer_as_keyword/TestUpdateArgsWithPaths.test_integer_as_keyword   sU     %E2NLM4yC.... }=MC?"? >r   c                      Sn [        / U / S9nSS/n[        U5      [        U5      :X  d   e[        [        U5      U5       H  u  p4XC;   a  M   e   g)z(Multiple keywords are matched correctly.)rK   rR   r)   rS   rL   NrC   r+   r,   rN   rG   r1   s        r   test_multiple_keywords.TestUpdateArgsWithPaths.test_multiple_keywords   s^     '%BK?G
 4yC.... }=MC?"? >r   c                      Sn [        / U / S9nSS/n[        U5      [        U5      :X  d   e[        [        U5      U5       H  u  p4XC;   a  M   e   g)z+Keywords are matched across multiple files.)1130r)   zJsympy/integrals/tests/test_heurisch.py::test_heurisch_symbolic_coeffs_1130zHsympy/utilities/tests/test_lambdify.py::test_python_div_zero_issue_11306NrC   rW   s        r   $test_keyword_match_in_multiple_files<TestUpdateArgsWithPaths.test_keyword_match_in_multiple_files   s^     %BKXV
 4yC.... }=MC?"? >r   r   N)r   r   r   r   r    r2   r   r!   r"   r#   r8   r<   r?   r   rH   rO   rT   rX   r\   r$   r   r   r   r&   r&   !   s        [[	)84 C  	 
          [[ '"		
#c #DQTI #  # [[ &',-:;	

#d3i #
 # [[ N /0	
	#tCy #	 # 
# 
# 
# 
#r   r&   )
r.   typingr   r   sympy.testing.runtests_pytestr   r   r   r   r&   r   r   r   <module>r`      s.       1 1(J# J#r   