I was using version 2.1.9. I'm now using version 3.3. This code has not been changed since the upgrade, I'm going to outline the relevant code and then explain the problem further
build_schema: neither Query or Mutation are None so this will return graphene.Schema(query=Query, mutation=Mutation)
@logf(level='debug')
def build_schema(*args, **kwargs) -> graphene.Schema:
"""Builds the Query and Mutation classes for the given
schema name and adds them a schema and returns the schema
"""
Query, Mutation = None, None
qclasses, qprops = _build_props('queries', *args, **kwargs)
if qclasses:
Query = type('Query', qclasses, qprops)
mclasses, mprops = _build_props('mutations', *args, **kwargs)
if mclasses:
Mutation = type('Mutation', mclasses, mprops)
if Query is None and Mutation is None:
raise ValueError('No Query or Mutation classes found')
elif Query is None:
gqlschema = graphene.Schema(mutation=Mutation)
elif Mutation is None:
gqlschema = graphene.Schema(query=Query)
else:
gqlschema = graphene.Schema(query=Query, mutation=Mutation)
return gqlschema
This is the test case that fails, it's not verbose about why it failed, it just hangs for 60 seconds and then says that it timed out
I've verified that the signedUrl query is present in the schema and that the arguments match the required type, I also tried using context instead of context_value, I'm sure it's to do with the upgrade from 2.1.9 to 3.3 though I'm not sure what in particular I should change. I also tried converting the test into an asynchronous function and using execute_async but I still get the same result. In addition, I tried using check_sync=True to no avail.
To reiterate: the test is hanging on this statement
result = self.schema.execute(
self.query,
context_value=infomock.context # Updated to context_value
)
And it is not verbose about why, only that it times out after 60 seconds. What am I doing wrong?
I was using version 2.1.9. I'm now using version 3.3. This code has not been changed since the upgrade, I'm going to outline the relevant code and then explain the problem further
build_schema: neither Query or Mutation are None so this will return
graphene.Schema(query=Query, mutation=Mutation)
This is the test case that fails, it's not verbose about why it failed, it just hangs for 60 seconds and then says that it timed out
I've verified that the signedUrl query is present in the schema and that the arguments match the required type, I also tried using context instead of context_value, I'm sure it's to do with the upgrade from 2.1.9 to 3.3 though I'm not sure what in particular I should change. I also tried converting the test into an asynchronous function and using execute_async but I still get the same result. In addition, I tried using check_sync=True to no avail.
To reiterate: the test is hanging on this statement
And it is not verbose about why, only that it times out after 60 seconds. What am I doing wrong?