tests.test_api ============== .. py:module:: tests.test_api .. autoapi-nested-parse:: test_api ---------------------------------- Tests for :mod:`cowbird.api` module. Classes ------- .. autoapisummary:: tests.test_api.TestAPI Functions --------- .. autoapisummary:: tests.test_api.test_response_metadata Module Contents --------------- .. py:class:: TestAPI(methodName='runTest') Bases: :py:obj:`unittest.TestCase` Test API operations of application. Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name. .. py:method:: setUpClass() :classmethod: Hook method for setting up class fixture before running tests in the class. .. py:method:: tearDownClass() :classmethod: Hook method for deconstructing the class fixture after running all tests in the class. .. py:method:: test_homepage() .. py:method:: test_webhooks() Test that sends a webhook request from Magpie to cowbird. .. py:function:: test_response_metadata() Validate that regardless of response type (success/error) and status-code, metadata details are added. note: test only locally to avoid remote server side-effects and because mock cannot be done remotely