Feature Tests

This tests the functionality of the component. A collection of unit tests may or may not represent a Feature test. The goal is to verify the component meets the requirements given for it. If you’re thinking in terms of a work item, this would be testing a ticket as a whole.

class NewEndpoint:
    def on_get(req, resp):
        resp.body = "Hello World"
 
def test_new_endpoint():
    result = simulate_get("/newendpoint")
    assert result.body = "Hello World"