Exemple #1
0
 def test_yorm_mapper_required(self):
     sample = SampleMappable()
     del sample.yorm_mapper
     with pytest.raises(AttributeError):
         print(get_mapper(sample))
Exemple #2
0
 def test_yorm_mapper_required(self):
     sample = SampleMappable()
     del sample.yorm_mapper
     with pytest.raises(AttributeError):
         print(get_mapper(sample))
Exemple #3
0
 def test_mappable_required(self):
     with pytest.raises(TypeError):
         print(get_mapper(None))
Exemple #4
0
 def test_mappable_required(self):
     with pytest.raises(TypeError):
         print(get_mapper(None))