def test_add_props():
    """Test that the props are added."""
    tag = Tag().add_props(key="value", key2=42, invalid=None, invalid2={})
    assert tag.props["key"].equals(LiteralVar.create("value"))
    assert tag.props["key2"].equals(LiteralVar.create(42))
    assert "invalid" not in tag.props
    assert "invalid2" not in tag.props
Test that the props are added.
tests/units/components/test_tag.py