I was wondering if there is any information on what type/structure this "context" object has? Can it perhaps be imported from an SDK of be defined somewhere? I would love to know this for creating tests.
Summary
The user was looking for information on the Python context object used in Appwrite functions. They asked if there is any information on the type or structure of the context object, as they wanted to create tests. Another user provided a link to the GitHub repository where the Context object is defined. The issue of adding type support for the Python SDK was mentioned and a link to the related issue and pull request was shared. The user thanked for the response and stated that they had already seen the link but wanted more information on the context object. No solution was provided in the thread.
@ideclon thanks for the response. I already saw this page and guess I should have formulated the question differently.
Is there some Python definition of the context object? I.e. such that I can make a script like this:
Plain text
def main(context: RuntimeContext):
return context.res.send("")```
In other words; this context object must have some class or data structure which is not specified in the documentation. This is relevant because I might want to write unittests that send such a context object, preferably without mocking an implementation and rather using the actual thing.