Source code for shuup.testing.line_properties_descriptor

from shuup.front.utils.order_source import BaseLinePropertiesDescriptor, LineProperty


[docs] class TestLinePropertiesDescriptor(BaseLinePropertiesDescriptor):
[docs] @classmethod def get_line_properties(cls, line, **kwargs): yield LineProperty("Type", str(line.type))