def test_get_response_for_create_post_given_post_id_returns_post_id_dict(): post_id = 1 expected_post_id_dict = {"post_id": post_id} json_presenter = PresenterImplementation() post_id_dict = json_presenter.get_create_post_response(post_id=post_id) assert post_id_dict == expected_post_id_dict
def create_post_wrapper(self, user_id: int, post_content: str, presenter: PresenterImplementation): post_id = self.create_post(user_id=user_id, post_content=post_content) return presenter.get_create_post_response(post_id=post_id)