Functionality for the following: """ Get a list of posts """ """ Single post endpoint """ """ Delete a single post """ """ Add a new post """ """ Update a single post """
Tests for the following:
""" Getting posts from an empty database """
""" Getting posts from a populated database """
""" Getting a single post from a populated database """
""" Getting a single post which doesn't exist """
""" Filtering posts by title and body """
""" Posting a new post """
""" Posting a post with an invalid body """
""" Posting a post with a missing body """
""" Updating a post (PUT request) from a populated database """
""" Test teardown """