
    	]j=                         d Z ddlZddlmZ ddlmZmZmZ ddlm	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.
    N)_create_user)make_annotationmake_project	make_task)parse_input_argsc                  V    t        g d      } i }t        | |      }|j                  J y )Ninittestz
--usernamezdefault@localhostz
--password12345678)r   r   active_organization)
input_argsconfigusers      E/root/env/lib/python3.12/site-packages/label_studio/tests/test_cli.pytest_create_userr   
   s0    !"opJF
F+D##///    c                      t        g d      } t        | i       t        ddd      fd} |         |         |        j                         j	                         dk(  sJ j                         dk(  sJ y )	Nr	   TestTa8  
                <View>
                  <Text name="location" value="$location"></Text>
                  <Choices name="text_class" choice="single">
                    <Choice value="class_A"></Choice>
                    <Choice value="class_B"></Choice>
                  </Choices>
                </View>)titleis_publishedlabel_configc                  <   t        dj                        } t        ddddi|       }t        ddddi|       }t        ddigd	d
gd|j                         t        ddigd	d
gd|j                         t        ddigd	d
gd|j                         y )NF)orgdataLondonztext A)locationtextr   T)resultground_truth)r!   completed_by)r   r   r   r   id)projecttask1task2project_configr   s      r   make_test_projectzAtest_user_active_organization_counters.<locals>.make_test_project$   s    ~tU@X@XY6(#KLgV6(#KLgVaz4$P#Qcghjojrjrsaz4$P#Qcghjojrjrsaz4$P#Qcghjojrjrsr   	      )r   r   dictactive_organization_annotationscount.active_organization_contributed_project_number)r   r)   r(   r   s     @@r   &test_user_active_organization_countersr0      s    !"opJ
B'DNt //1779Q>>>>>@AEEEr   )__doc__pytestserverr   tests.utilsr   r   r   label_studio.core.argparserr   mark	django_dbr   r0    r   r   <module>r9      sW      @ @ 8 0 0 F Fr   