
    gR                         d dl mZ d dlmZ d dlZd dlmZ d Zd Zej                  j                  ddd	g      d
        Zy)    )Mapping)PathN)REGISTRYc                  z    t        j                  d      } t        | t              sJ | d   dk(  sJ | d   dk(  sJ y )Nz'http://json-schema.org/draft-07/schema#z$idtitlezCore schema meta-schema)r   contents
isinstancer   )schemas    s/var/www/openai/venv/lib/python3.12/site-packages/jsonschema_specifications/tests/test_jsonschema_specifications.pytest_it_contains_metaschemasr   	   sI    HIFfg&&&%=EEEE'?7777    c                  >    t        j                         t         k(  sJ y )N)r   crawl r   r   test_it_is_crawledr      s    >>x'''r   ignored_relative_pathzschemas/.DS_Storezschemas/draft7/.DS_Storec                     ddl }t        |j                        j                  }|| z  }|j	                          	 t        |j                                |j                          y# |j                          w xY 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ignoreds       r   test_it_copes_with_dotfilesr      s^     %,556==G--GMMO&//12s   A$ $A6)collections.abcr   pathlibr   pytestr   r   r   r   markparametrizer   r   r   r   <module>r#      sJ    #   .8( 45	r   