OpenQuizz
Une application de gestion des contenus pédagogiques
ValidatorTestMixin Class Reference
Inheritance diagram for ValidatorTestMixin:
Collaboration diagram for ValidatorTestMixin:

Public Member Functions

def test_valid_instances_are_valid (self)
 
def test_invalid_instances_are_not_valid (self)
 
def test_non_existent_properties_are_ignored (self)
 
def test_it_creates_a_ref_resolver_if_not_provided (self)
 
def test_it_delegates_to_a_ref_resolver (self)
 
def test_it_delegates_to_a_legacy_ref_resolver (self)
 
def test_is_type_is_true_for_valid_type (self)
 
def test_is_type_is_false_for_invalid_type (self)
 
def test_is_type_evades_bool_inheriting_from_int (self)
 
def test_string_a_bytestring_is_a_string (self)
 
def test_patterns_can_be_native_strings (self)
 
def test_it_can_validate_with_decimals (self)
 
def test_it_returns_true_for_formats_it_does_not_know_about (self)
 
def test_it_does_not_validate_formats_by_default (self)
 
def test_it_validates_formats_if_a_checker_is_provided (self)
 
def test_non_string_custom_type (self)
 
def test_it_properly_formats_tuples_in_errors (self)
 
- Public Member Functions inherited from MetaSchemaTestsMixin
def test_invalid_properties (self)
 
def test_minItems_invalid_string (self)
 
def test_enum_allows_empty_arrays (self)
 
def test_enum_allows_non_unique_items (self)
 

Member Function Documentation

◆ test_invalid_instances_are_not_valid()

def test_invalid_instances_are_not_valid (   self)

◆ test_is_type_evades_bool_inheriting_from_int()

def test_is_type_evades_bool_inheriting_from_int (   self)

◆ test_is_type_is_false_for_invalid_type()

def test_is_type_is_false_for_invalid_type (   self)

◆ test_is_type_is_true_for_valid_type()

def test_is_type_is_true_for_valid_type (   self)

◆ test_it_can_validate_with_decimals()

def test_it_can_validate_with_decimals (   self)

◆ test_it_creates_a_ref_resolver_if_not_provided()

def test_it_creates_a_ref_resolver_if_not_provided (   self)

◆ test_it_delegates_to_a_legacy_ref_resolver()

def test_it_delegates_to_a_legacy_ref_resolver (   self)
Legacy RefResolvers support only the context manager form of
resolution.

◆ test_it_delegates_to_a_ref_resolver()

def test_it_delegates_to_a_ref_resolver (   self)

◆ test_it_does_not_validate_formats_by_default()

def test_it_does_not_validate_formats_by_default (   self)

◆ test_it_properly_formats_tuples_in_errors()

def test_it_properly_formats_tuples_in_errors (   self)
A tuple instance properly formats validation errors for uniqueItems.

See https://github.com/Julian/jsonschema/pull/224

◆ test_it_returns_true_for_formats_it_does_not_know_about()

def test_it_returns_true_for_formats_it_does_not_know_about (   self)

◆ test_it_validates_formats_if_a_checker_is_provided()

def test_it_validates_formats_if_a_checker_is_provided (   self)

◆ test_non_existent_properties_are_ignored()

def test_non_existent_properties_are_ignored (   self)

◆ test_non_string_custom_type()

def test_non_string_custom_type (   self)

◆ test_patterns_can_be_native_strings()

def test_patterns_can_be_native_strings (   self)
See https://github.com/Julian/jsonschema/issues/611.

◆ test_string_a_bytestring_is_a_string()

def test_string_a_bytestring_is_a_string (   self)

◆ test_valid_instances_are_valid()

def test_valid_instances_are_valid (   self)

The documentation for this class was generated from the following file: