예제 #1
0
 def test_video_premium_multi(self):
     if AUTH_P[0] is not None:
         db = get_infos(rand(3), LOGGER)
         assert Video(AUTH_P[0], AUTH_P[1],
                      LOGGER).start(db, SAVE_DIR_2)
예제 #2
0
 def test_thumbnail_without_logger(self):
     db = get_infos(rand(0))
     assert Thumbnail().start(db, SAVE_DIR_2)
예제 #3
0
 def test_video_normal_single(self):
     db = get_infos(rand()[0], LOGGER)
     assert Video(AUTH_N[0], AUTH_N[1], LOGGER).start(db, SAVE_DIR_2)
예제 #4
0
 def test_thumbnail_multi(self):
     db = get_infos(rand(0))
     assert Thumbnail(LOGGER).start(db, SAVE_DIR_2)
예제 #5
0
 def test_thumbnail_single(self):
     db = get_infos(rand())
     assert Thumbnail(LOGGER).start(db, SAVE_DIR_2)
예제 #6
0
 def test_comment_without_directory(self):
     db = get_infos(rand()[0], LOGGER)
     with pytest.raises(utils.MylistArgumentError):
         # noinspection PyTypeChecker
         Comment(AUTH_N[0], AUTH_N[1], LOGGER).start(db, None)
예제 #7
0
 def test_comment_multi(self):
     db = get_infos(rand(0), LOGGER)
     assert Comment(AUTH_N[0], AUTH_N[1], LOGGER).start(db,
                                                        SAVE_DIR_2,
                                                        xml=True)
예제 #8
0
 def test_comment_single(self):
     db = get_infos(rand()[0], LOGGER)
     assert Comment(AUTH_N[0], AUTH_N[1], LOGGER).start(db, SAVE_DIR_2)