def test_schema():
    """It should create a valid, usable schema based on a merged query"""
    ComboQuery = merge_types("SuperSchema", (ComplexGreeter, Person))
    schema = strawberry.Schema(query=ComboQuery)

    sdl = """
        schema {
          query: SuperSchema
        }

        type SuperSchema {
          hi(name: String! = "world"): String!
          bye(name: String! = "world"): String!
          name: String!
          age: Int!
        }
    """
    assert dedent(sdl).strip() == str(schema)

    result = schema.execute_sync("query { hi }")
    assert not result.errors
    assert result.data == {"hi": "Hello, world!"}
It should create a valid, usable schema based on a merged query
tests/tools/test_merge_types.py