Ejemplo n.º 1
0
def test_deconstruct__non_default_suffix():
    field = MarkdownField(property_suffix="_rendered")
    assert field.deconstruct() == (
        None,
        qual_name(MarkdownField),
        [],
        {"property_suffix": "_rendered"},
    )
Ejemplo n.º 2
0
def test_deconstruct__non_default_suffix():
    field = MarkdownField(property_suffix="_rendered")
    assert field.deconstruct() == (
        None,
        "sfdo_template_helpers.fields.MarkdownField",
        [],
        {"property_suffix": "_rendered"},
    )
Ejemplo n.º 3
0
def test_deconstruct__default_suffix():
    field = MarkdownField()
    assert field.deconstruct() == (
        None,
        "sfdo_template_helpers.fields.MarkdownField",
        [],
        {},
    )
Ejemplo n.º 4
0
def test_deconstruct__default_suffix():
    field = MarkdownField()
    assert field.deconstruct() == (None, qual_name(MarkdownField), [], {})