def test_comment_add(sessions): session = Session( user_id = "user", barcamp_id = "barcamp", title = "session title", description = "session description", ) session = sessions.save(session) session = sessions.get(session._id) session.add_comment("user", "this is the comment") assert len(session.get_comments()) == 1
def test_comment_add(sessions): session = Session( user_id="user", barcamp_id="barcamp", title="session title", description="session description", ) session = sessions.save(session) session = sessions.get(session._id) session.add_comment("user", "this is the comment") assert len(session.get_comments()) == 1