MCPcopy Index your code
hub / github.com/bennybauer/serverless-python-sample / test_list_posts

Method test_list_posts

test.py:9–13  ·  view source on GitHub ↗

Tests list_posts

(self)

Source from the content-addressed store, hash-verified

7 """ Tests handler methods """
8
9 def test_list_posts(self):
10 """ Tests list_posts """
11 res = list_posts(None, None)
12 self.assertEquals(200, res['statusCode'])
13 self.assertTrue(len(res['body']) > 0)
14
15 def test_get_post(self):
16 """ Tests get_post """

Callers

nothing calls this directly

Calls 1

list_postsFunction · 0.90

Tested by

no test coverage detected