The `put_json` method in the `webtest.TestApp` class is used to make a PUT request to a specified URL with JSON data. It allows the user to send JSON content in the request body, which is commonly used in web applications for updating or modifying existing resources on the server. This method simplifies the process of sending PUT requests with JSON payload and provides a convenient way to test and interact with APIs or web services that support JSON data.
Python TestApp.put_json - 53 examples found. These are the top rated real world Python examples of webtest.TestApp.put_json extracted from open source projects. You can rate examples to help us improve the quality of examples.