
    	]j	                         d Z ddlZej                  j                  d        Zej                  j                  d        Zej                  j                  d        Zej                  j                  d        Zy)zThis file and its contents are licensed under the Apache License 2.0. Please see the included NOTICE for copyright information and LICENSE for a copy of the license.
    Nc                     d|_         |j                  dddd      }|j                  dk(  sJ | j                  d      }|j	                         d	   }|j                  |ddd      }|j                  d
k(  sJ y )NTz/user/signuptest_user@example.comtest_passwordemailpassworddata  /api/invite
invite_url.  )DISABLE_SIGNUP_WITHOUT_LINKpoststatus_codegetjsonbusiness_clientclientsettingsresponser   s        I/root/env/lib/python3.12/site-packages/label_studio/tests/test_invites.pytest_signup_settingr      s    +/H({{>:Q_n0o{pH3&&&""=1H.J{{:6M[j,k{lH3&&&    c                    d|_         | j                  d      }|j                         d   }|j                  |ddd      }|j                  dk(  sJ | j                  d	      }|j                         d   }|j                          |j                  |d
dd      }|j                  dk(  sJ |j                         |j                  |ddd      }|j                  dk(  sJ y )NTr   r   r   r   r   r	   r   z/api/invite/reset-tokentest_user1@example.comr   ztest_user2@example.com)r   r   r   r   r   logoutcontent)r   r   r   r   r   new_invite_urls         r   test_reset_tokenr!      s    +/H( ""=1H.J{{:6M[j,k{lH3&&&##$=>H]]_\2N MMO{{:6N\k,l{mH3&8(8(88& {{>:R`o0p{qH3&&&r   c                 ~    d|_         |j                  dddd      }|j                  dk(  sJ |j                         y )NFz/user/signup/?token=54321abcer   r   r   r	   r   )r   r   r   r   )r   r   r   r   s       r   test_reset_token_not_validr#   ,   sL    +0H( {{'8P^m.n  H 3&8(8(88&r   c                    d|_         | j                  d      }|j                         d   }|j                  | d      }|j                  dk(  sJ |j                         t        |j                        j                  d      dk7  sJ y )NTr   r   z3&email=test_user@example.com&password=test_password   zCreate Account)r   r   r   r   r   strfindr   s        r   "test_token_get_not_post_shows_formr)   7   s    +/H( ""=1H.JzzZL([\]H3&8(8(88&x %%&672===r   )__doc__pytestmark	django_dbr   r!   r#   r)    r   r   <module>r/      s     
' 
' ' ', 9 9 > >r   