def test_script_src():
    """Test src prop is rendered without children."""
    component = Script.create(src="foo.js")
    render_dict = component.render()
    assert render_dict["name"] == "Script"
    assert not render_dict["contents"]
    assert not render_dict["children"]
    assert 'src:"foo.js"' in render_dict["props"]
Test src prop is rendered without children.
tests/units/components/base/test_script.py