def test_yorm_mapper_required(self): sample = SampleMappable() del sample.yorm_mapper with pytest.raises(AttributeError): print(get_mapper(sample))
def test_mappable_required(self): with pytest.raises(TypeError): print(get_mapper(None))