def status_json():
    test_cases_dir = join(dirname(realpath(__file__)),
                          "twitter-single_comment.json")
    return read_jsonpickle(test_cases_dir)
Beispiel #2
0
def mock_response():
    gn_response_path = join(dirname(realpath(__file__)),
                            "gn-example_response.json")
    return read_jsonpickle(gn_response_path)
Beispiel #3
0
def get_gn_articles():
    gn_articles_path = join(dirname(realpath(__file__)),
                            "gn-historical_comments.json")
    return read_jsonpickle(gn_articles_path)
Beispiel #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)
Beispiel #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)
Beispiel #6
0
def get_tweets_pkl():
    tweets_pkl_path = join(dirname(realpath(__file__)),
                           "twitter-stream_comments.json")
    return read_jsonpickle(tweets_pkl_path)