%PDF- %PDF-
Direktori : /lib/python3/dist-packages/jsonschema/tests/__pycache__/ |
Current File : //lib/python3/dist-packages/jsonschema/tests/__pycache__/test_cli.cpython-312.pyc |
� `��dBp � �< � d dl mZmZ d dlmZ d dlmZ d dlmZ d dl m Z d dlmZ d dlZd dl Z d dlZd dlZd dlZ d dlmZ d d lmZ d d lmZmZmZ d dlmZmZmZ d dlm Z m!Z! d � Z"d� Z#d� Z$ G d� de� Z% G d� de� Z& G d� de� Z'y# e$ r d dlZY �Xw xY w)� )�redirect_stderr�redirect_stdout)�StringIO)�JSONDecodeError)�Path)�dedent)�TestCaseN)�metadata)�m)�Draft4Validator�Draft202012Validator�cli)�RefResolutionError�SchemaError�ValidationError)�_LATEST_VERSION�validatec �R � � t t � � � � G � fd�dt � }|S )Nc �. �� e Zd Zd� Z� fd�Zed� � Zy)�%fake_validator.<locals>.FakeValidatorc � � y �N� )�self�args�kwargss �;/usr/lib/python3/dist-packages/jsonschema/tests/test_cli.py�__init__z.fake_validator.<locals>.FakeValidator.__init__! s � �� c �, �� �r�j � S g S r )�pop)r �instance�errorss �r �iter_errorsz1fake_validator.<locals>.FakeValidator.iter_errors$ s �� ���z�z�|�#��Ir c � � y r r �r �schemas r �check_schemaz2fake_validator.<locals>.FakeValidator.check_schema) s � �r N)�__name__� __module__�__qualname__r r$ �classmethodr( )r# s �r � FakeValidatorr s! �� � � � � � � r r- )�list�reversed�object)r# r- s ` r �fake_validatorr1 s&