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

Public Member Functions

def test_create_default_types (self)
 
def test_extend (self)
 
def test_types_redefines_the_validators_type_checker (self)
 
def test_providing_default_types_warns (self)
 
def test_cannot_ask_for_default_types_with_non_default_type_checker (self)
 
def test_providing_explicit_type_checker_does_not_warn (self)
 
def test_providing_neither_does_not_warn (self)
 
def test_providing_default_types_with_type_checker_errors (self)
 
def test_extending_a_legacy_validator_with_a_type_checker_errors (self)
 
def test_extending_a_legacy_validator_does_not_rewarn (self)
 
def test_accessing_default_types_warns (self)
 
def test_accessing_default_types_on_the_instance_warns (self)
 
def test_providing_types_to_init_warns (self)
 

Member Function Documentation

◆ test_accessing_default_types_on_the_instance_warns()

def test_accessing_default_types_on_the_instance_warns (   self)

◆ test_accessing_default_types_warns()

def test_accessing_default_types_warns (   self)

◆ test_cannot_ask_for_default_types_with_non_default_type_checker()

def test_cannot_ask_for_default_types_with_non_default_type_checker (   self)
We raise an error when you ask a validator with non-default
type checker for its DEFAULT_TYPES.

The type checker argument is new, so no one but this library
itself should be trying to use it, and doing so while then
asking for DEFAULT_TYPES makes no sense (not to mention is
deprecated), since type checkers are not strictly about Python
type.

◆ test_create_default_types()

def test_create_default_types (   self)

◆ test_extend()

def test_extend (   self)

◆ test_extending_a_legacy_validator_does_not_rewarn()

def test_extending_a_legacy_validator_does_not_rewarn (   self)

◆ test_extending_a_legacy_validator_with_a_type_checker_errors()

def test_extending_a_legacy_validator_with_a_type_checker_errors (   self)

◆ test_providing_default_types_warns()

def test_providing_default_types_warns (   self)

◆ test_providing_default_types_with_type_checker_errors()

def test_providing_default_types_with_type_checker_errors (   self)

◆ test_providing_explicit_type_checker_does_not_warn()

def test_providing_explicit_type_checker_does_not_warn (   self)

◆ test_providing_neither_does_not_warn()

def test_providing_neither_does_not_warn (   self)

◆ test_providing_types_to_init_warns()

def test_providing_types_to_init_warns (   self)

◆ test_types_redefines_the_validators_type_checker()

def test_types_redefines_the_validators_type_checker (   self)

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