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

Public Member Functions

def test_it_knows_how_many_total_errors_it_contains (self)
 
def test_it_contains_an_item_if_the_item_had_an_error (self)
 
def test_it_does_not_contain_an_item_if_the_item_had_no_error (self)
 
def test_validators_that_failed_appear_in_errors_dict (self)
 
def test_it_creates_a_child_tree_for_each_nested_path (self)
 
def test_children_have_their_errors_dicts_built (self)
 
def test_multiple_errors_with_instance (self)
 
def test_it_does_not_contain_subtrees_that_are_not_in_the_instance (self)
 
def test_if_its_in_the_tree_anyhow_it_does_not_raise_an_error (self)
 

Member Function Documentation

◆ test_children_have_their_errors_dicts_built()

def test_children_have_their_errors_dicts_built (   self)

◆ test_if_its_in_the_tree_anyhow_it_does_not_raise_an_error()

def test_if_its_in_the_tree_anyhow_it_does_not_raise_an_error (   self)
If a validator is dumb (like :validator:`required` in draft 3) and
refers to a path that isn't in the instance, the tree still properly
returns a subtree for that path.

◆ test_it_contains_an_item_if_the_item_had_an_error()

def test_it_contains_an_item_if_the_item_had_an_error (   self)

◆ test_it_creates_a_child_tree_for_each_nested_path()

def test_it_creates_a_child_tree_for_each_nested_path (   self)

◆ test_it_does_not_contain_an_item_if_the_item_had_no_error()

def test_it_does_not_contain_an_item_if_the_item_had_no_error (   self)

◆ test_it_does_not_contain_subtrees_that_are_not_in_the_instance()

def test_it_does_not_contain_subtrees_that_are_not_in_the_instance (   self)

◆ test_it_knows_how_many_total_errors_it_contains()

def test_it_knows_how_many_total_errors_it_contains (   self)

◆ test_multiple_errors_with_instance()

def test_multiple_errors_with_instance (   self)

◆ test_validators_that_failed_appear_in_errors_dict()

def test_validators_that_failed_appear_in_errors_dict (   self)

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