Skip to main content
Glama
conftest.cpython-312-pytest-8.3.4.pyc1.97 kB
� ��g�����dZddlZddlmcmZddlZddlm Z ddl Z ddl m Z ddl mZddlmZd�Ze j$d� �d d ��Ze j$d e fd ��Zy)z)Pytest configuration and shared fixtures.�N)� Generator)� load_dotenv)� ApiClient)� Configurationc�(�|jdd�y)zConfigure custom markers.�markerszKintegration: mark test as an integration test that requires YNAB API accessN)�addinivalue_line)�configs �A/Users/home/1-Dev-Projects/mcp-servers/ynab-mcp/tests/conftest.py�pytest_configurer s�� ����U���session)�scope�returnc�r�td��tjd�stjd�yy)z%Load environment variables for tests.T)�verbose� YNAB_API_KEY�#YNAB_API_KEY not set in environmentN)r�os�getenv�pytest�skip�r r � env_setuprs*����� �9�9�^� $�� � �9�:� %r c#��K�tjd�stjd�t tjd���}t |�5}|��ddd�y#1swYyxYw�w)z%Create a YNAB API client for testing.rr)� access_tokenN)rrrrrr)r� configuration�clients r � ynab_clientrsN���� �9�9�^� $�� � �9�:�!�r�y�y��/H�I�M� �=� !�V�� � "� !� !�s�AA1�A%� A1�%A.�*A1)rN)�__doc__�builtins� @py_builtins�_pytest.assertion.rewrite� assertion�rewrite� @pytest_arr�typingrr�dotenvr�ynab.api_clientr�ynab.configurationrr �fixturerrrr r �<module>r,sa��/��� �� ��%�,������i� �;�!�;�����i���r

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Meh-S-Eze/ynab-mcp-client2'

If you have feedback or need assistance with the MCP directory API, please join our Discord server