U
    !?hR                     @   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t| d dks(t| d dks8td S )Nz'http://json-schema.org/draft-07/schema#z$idtitlezCore schema meta-schema)r   contents
isinstancer   AssertionError)Zschema r	   p/var/www/html/venv/lib/python3.8/site-packages/jsonschema_specifications/tests/test_jsonschema_specifications.pytest_it_contains_metaschemas	   s    
r   c                   C   s   t  t kstd S )N)r   Zcrawlr   r	   r	   r	   r
   test_it_is_crawled   s    r   ignored_relative_pathzschemas/.DS_Storezschemas/draft7/.DS_Storec                 C   sD   ddl }t|jj}||  }|  zt|  W 5 |  X dS )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unlinklistZ_schemas)r   r   packageZignoredr	   r	   r
   test_it_copes_with_dotfiles   s    r   )collections.abcr   pathlibr   Zpytestr   r   r   r   markZparametrizer   r	   r	   r	   r
   <module>   s   