test_uni_token.cpython-311-pytest-7.4.0.pyc•10.4 kB
�
WU�g� � � � d dl Zd dlmc mZ d dlZd dlZd dlZd dl Z d dl
mZ d dlZd dl
Z
d dlmZ d dlmZ d dlmZ dZd� Zej d� � � Zej d � � � Zej d
� � � Zej j d� � � ZdS )� N)�Path)�Web3)�ABIAnalyzer)�MCPGenerator�*0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984c � � ddg}d� |D � � }|r,t j dd� |� � � �� � dS dS )z,Configure pytest with environment variables.�OPENAI_API_KEY�ETH_NODE_URLc �: � g | ]}t j |� � �|��S � )�os�getenv)�.0�vars �5/Users/arjun/repos/sparkmango/tests/test_uni_token.py�
<listcomp>z$pytest_configure.<locals>.<listcomp> s% � �G�G�G�C�� �#���G�C�G�G�G� z(Missing required environment variables: z, N)�pytest�exit�join)�config�
required_vars�missing_varss r �pytest_configurer sa � � &�~�6�M�G�G�=�G�G�G�L�� Z���X�t�y�y��?V�?V�X�X�Y�Y�Y�Y�Y�Z� Zr c � � t t � � j j dz dz } | � � � st j d� � t
| � � 5 }t j |� � cddd� � S # 1 swxY w Y dS )zLoad the Uni token ABI.� contractsz
UniToken.jsonzUniToken.json not foundN) r �__file__�parent�existsr �skip�open�json�load)�abi_path�fs r �uni_abir&