def test_fstrings(contents, expected):
    """Test that fstrings are rendered correctly.

    Args:
        contents: The contents of the component.
        expected: The expected output.
    """
    comp = Bare.create(contents).render()
    assert comp["contents"] == expected
Test that fstrings are rendered correctly.

    Args:
        contents: The contents of the component.
        expected: The expected output.
    
tests/units/components/base/test_bare.py