def test_extension_order_preserved():
    """Test to verify that extension order is preserved while removing duplicates."""

    class Extension1(SchemaExtension):
        pass

    class Extension2(SchemaExtension):
        pass

    schema = strawberry.Schema(
        query=Query, extensions=[Extension1, Extension2], directives=[uppercase]
    )

    extensions = schema.get_extensions()
    extension_types = [
        type(ext)
        for ext in extensions
        if not isinstance(ext, (DirectivesExtension, DirectivesExtensionSync))
    ]

    assert extension_types == [Extension1, Extension2], "Extension order not preserved"
Test to verify that extension order is preserved while removing duplicates.
tests/schema/test_get_extensions.py