
    ZiR                     6    d dl Z d dlZd dlmZ d dlZd Zd ZdS )    N)dedentc                    |                      d          }|                    t          d                     t          j        t
          j                  5 }t          j        t          j	        t          |          gt
          j                   d d d            n# 1 swxY w Y   |j        j        }d|v sJ d|v sJ d|v sJ d|v sJ d S )Napp.pyz
    from posthog import Posthog
    posthog = Posthog('phc_x', host='https://eu.i.posthog.com', enable_exception_autocapture=True, debug=True, on_error=lambda e, batch: print('error handling batch: ', e, batch))

    # frame_value = "LOL"

    1/0
    stderr   ZeroDivisionError   LOL(   DEBUG:posthog:data uploaded successfully   "$exception_list": [{"mechanism": {"type": "generic", "handled": true}, "module": null, "type": "ZeroDivisionError", "value": "division by zero", "stacktrace": {"frames": [{"platform": "python", "filename": "app.py", "abs_path"joinwriter   pytestraises
subprocessCalledProcessErrorcheck_outputsys
executablestrSTDOUTvalueoutputtmpdirappexcinfor   s       ^/root/projects/butler/venv/lib/python3.11/site-packages/posthog/test/test_exception_capture.pytest_excepthookr      >   
++h

CII		
 		
   
z4	5	5 VS ::CTUUUUV V V V V V V V V V V V V V V ]!F6))))V6&@@@@ 	o	 	 	 	 	 	   :BB #B c                    |                      d          }|                    t          d                     t          j        t
          j                  5 }t          j        t          j	        t          |          gt
          j                   d d d            n# 1 swxY w Y   |j        j        }d|v sJ d|v sJ d|v sJ d|v sJ d S )Nr   aE  
    from posthog import Posthog, Integrations
    posthog = Posthog('phc_x', host='https://eu.i.posthog.com', enable_exception_autocapture=True, exception_autocapture_integrations=[Integrations.Django], debug=True, on_error=lambda e, batch: print('error handling batch: ', e, batch))

    # frame_value = "LOL"

    1/0
    r   r   r	   r
   r   r   r   s       r   %test_trying_to_use_django_integrationr#   %   r    r!   )r   r   textwrapr   r   r   r#        r   <module>r'      s]        



         :    r&   