�
S�"i� � �r � d Z ddlZddlmc mZ ddlZddlZddl Z d� Z
edk( r e j e
g� yy)zUnit test for metrics export� Nc �� � ddl } t j � 5 }| j |d�� }i g d�}|j |� |j � |j
� ddd� y# 1 sw Y yxY w)zTest exporting metricsr N� )�
output_dir�write_interval_secs)�resource�
scope_metrics)�otlp_arrow_library�tempfile�TemporaryDirectory�
PyOtlpLibrary�export_metrics�flush�shutdown)r �tmpdir�library�metrics_dicts �M/Users/mark.olliver/GIT/otlp-rust-service/tests/python/test_metrics_export.py�test_export_metricsr sr � �� � $� $� &�&�$�2�2�� !� 3�
�� ��
�� ���|�,� �
�
�� ����/
'� &� &�s �A
A,�,A5�__main__)�__doc__�builtins�@py_builtins�_pytest.assertion.rewrite� assertion�rewrite�
@pytest_arr
�os�pytestr �__name__�main�__file__� � r �<module>r$ s9 �� "� � �� �
��<