def status_json():
    test_cases_dir = join(dirname(realpath(__file__)),
                          "twitter-single_comment.json")
    return read_jsonpickle(test_cases_dir)
예제 #2
0
def mock_response():
    gn_response_path = join(dirname(realpath(__file__)),
                            "gn-example_response.json")
    return read_jsonpickle(gn_response_path)
예제 #3
0
def get_gn_articles():
    gn_articles_path = join(dirname(realpath(__file__)),
                            "gn-historical_comments.json")
    return read_jsonpickle(gn_articles_path)
예제 #4
0
def get_hn_comments_jsonpkl():
    hn_comments_jsonpkl_path = join(dirname(realpath(__file__)),
                                    "hn-stream_comments.json")
    return read_jsonpickle(hn_comments_jsonpkl_path)
예제 #5
0
def hacker_news_comment_json():
    hn_comments_russia_json_pkl_path = join(dirname(realpath(__file__)),
                                            "hn-historical-russia.json")
    return read_jsonpickle(hn_comments_russia_json_pkl_path)
예제 #6
0
def get_tweets_pkl():
    tweets_pkl_path = join(dirname(realpath(__file__)),
                           "twitter-stream_comments.json")
    return read_jsonpickle(tweets_pkl_path)