def test_should_get_single_post(self):
     # when
     response = PostService.get_single_post(1)
     # then
     assert PostsAssertions.is_single_post_response_ok(response)
Пример #2
0
def step_impl(context):
    context.response = PostService.get_single_post(1)