def test_fields_override():
    """It should warn when merging results in overriding fields"""
    with pytest.warns(Warning):
        merge_types("FieldsOverride", (ComplexGreeter, SimpleGreeter))
It should warn when merging results in overriding fields
tests/tools/test_merge_types.py