def test_step(self): sp = QQZoneSpider(use_redis=False, debug=False) step1 = sp.find_best_step(1100, 5) step2 = sp.find_best_step(1222, 5) step3 = sp.find_best_step(2222, 10) assert step1 == 220 assert step2 == 240 assert step3 == 220
def test_step(): sp = QQZoneSpider(use_redis=True, debug=True, mood_begin=0, mood_num=1000, stop_time='-1', download_small_image=False, download_big_image=False, download_mood_detail=True, download_like_detail=True, download_like_names=True, recover=False, cookie_text=None) sp.find_best_step(1100, 5) sp.find_best_step(1222, 5) sp.find_best_step(2222, 10)