Simple utility class for creating context objects (e.g. context=Context(user=user)
)
A wrapper class for strings to say "don't touch me". Can be used for arguments and as keys of the object passed to build_query
.
A unittest.TestCase mixin with utility functions
Recursively un-orders dicts so that the error diffs print nicely
Encodes arguments to be passed to query builder. Understands strings, lists, and Fragment
s.
Builds a GraphQL query from the shape of the expected data. Understands nested dicts, (homogeneous) lists, and fragments. Can be passed arguments
, a dict mapping keys (anywhere in the tree) to a dict of arguments.
Relay utility for wrapping a set of ids into a connection shape
Executes a query and verifies it matches the expected data. Tries to give helpful output.
Verifies that a given expected data query exercises the entire node definition (at least in terms of covering all keys).