def test_get_attribute_access_type_default_factory(
    cls: type, expected: GenericType
) -> None:
    """Test get_attribute_access_type returns the correct type for default factory fields.

    Args:
        cls: Class to test.
        expected: Expected type.
    """
    assert get_attribute_access_type(cls, "default_factory") == expected
Test get_attribute_access_type returns the correct type for default factory fields.

    Args:
        cls: Class to test.
        expected: Expected type.
    
tests/units/test_attribute_access_type.py