We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ccam80/zotero-chunk-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
conftest.cpython-312-pytest-9.0.2.pyc•11.2 KiB
�
]��i�$ � �� � d Z ddlmZ ddlZddlmc mZ ddl Z ddl
Z
ddlmZ ddl
Z
ee� j dz dz Zg d�Ze
j$ dd�� Z e
j$ d �
� d� � Z e
j$ d �
� d� � Ze
j$ dd
�� Ze
j$ dd�� Ze
j$ dd�� Ze
j$ dd�� Ze
j$ dd�� Zy)z�
Shared pytest fixtures for zotero-chunk-rag tests.
All fixtures that need to be shared across test modules should be defined here.
� )�annotationsN)�Path�fixtures�papers)znoname1.pdfznoname2.pdfznoname3.pdfc � � t } | j } |� }|s�t j d| � �� dz dt j
� v st j | � rt j | � ndt j |� t j |� d�z }t t j |� � �dx}}| S )zBPath to the directory containing real academic papers for testing.z!Real papers directory not found: zC
>assert %(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.exists
}()
}�path)�py0�py2�py4N)
�
_FIXTURES_DIR�exists�
@pytest_ar�_format_assertmsg�@py_builtins�locals�_should_repr_global_name� _saferepr�AssertionError�_format_explanation)r �@py_assert1�@py_assert3�@py_format5s �?C:\local_working_projects\zotero_citation_mcp\tests\conftest.py�real_papers_dirr sx � � �D��;�;�D�;�=�D�=�D�D�=�d�V�D�D�D�D�D�D�D�4�D�D�D�4�D�D�D�;�D�D�D�=�D�D�D�D�D�D��K� �session)�scopec �\ � ddl m} t D �ci c] }| | t |z � �� c}S c c}w )zJExtract all fixture PDFs once per session. Returns dict keyed by filename.r )�extract_document)�zotero_chunk_rag.pdf_processorr �_PAPER_NAMESr )r �names r �extracted_papersr# "