
    	]jm                     d    d Z ddlZddlZddlZddlm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   )
project_idc                 l   t        |ddi      }t        j                  d      5 }t        d      |_        | j                  dt        j                  |      d      }|j                  d	k(  sJ |j                         |j                         }|d
   dk(  sJ d|d   v sJ 	 d d d        y # 1 sw Y   y xY w)Ntestr   )projectdatazdata_manager.api.ViewAPI.createTestz/api/dm/views/zapplication/json)r   content_typei  detailzException: Testexc_info)
dictmockpatch	Exceptionside_effectpostjsondumpsstatus_codecontent)business_clientr   payloadmresponseresponse_datas         K/root/env/lib/python3.12/site-packages/label_studio/tests/test_exception.pytest_custom_exception_handlingr      s    :VQK8G	5	6 
>!!&)"''G$+ ( 

 ##s*<H,<,<<* X&&000 M*$====
> 
> 
>s   A;B**B3)	__doc__r   r   pytestutilsr   mark	django_dbr        r   <module>r%      s4        > >r$   