o
    ï¯ªgR  ã                   @   sZ   d dl mZ d dlmZ d dlZd dlmZ dd„ Zdd„ Zej	 
d	d
dg¡dd„ ƒZdS )é    )ÚMapping)ÚPathN)ÚREGISTRYc                  C   s<   t  d¡} t| tƒsJ ‚| d dksJ ‚| d dksJ ‚d S )Nz'http://json-schema.org/draft-07/schema#z$idÚtitlezCore schema meta-schema)r   ÚcontentsÚ
isinstancer   )Úschema© r	   úz/var/www/html/chatdoc2/venv/lib/python3.10/site-packages/jsonschema_specifications/tests/test_jsonschema_specifications.pyÚtest_it_contains_metaschemas	   s   
r   c                   C   s   t  ¡ t ksJ ‚d S )N)r   Úcrawlr	   r	   r	   r
   Útest_it_is_crawled   s   r   Úignored_relative_pathzschemas/.DS_Storezschemas/draft7/.DS_Storec                 C   sJ   ddl }t|jƒj}||  }| ¡  zt| ¡ ƒ W | ¡  dS | ¡  w )z¾
    Ignore files like .DS_Store if someone has actually caused one to exist.

    We test here through the private interface as of course the global has
    already loaded our schemas.
    r   N)Újsonschema_specificationsr   Ú__file__ÚparentÚtouchÚlistÚ_schemasÚunlink)r   r   ÚpackageÚignoredr	   r	   r
   Útest_it_copes_with_dotfiles   s   r   )Úcollections.abcr   Úpathlibr   Úpytestr   r   r   r   ÚmarkÚparametrizer   r	   r	   r	   r
   Ú<module>   s    þ