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)
def test_thumbnail_without_logger(self): db = get_infos(rand(0)) assert Thumbnail().start(db, SAVE_DIR_2)
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)
def test_thumbnail_multi(self): db = get_infos(rand(0)) assert Thumbnail(LOGGER).start(db, SAVE_DIR_2)
def test_thumbnail_single(self): db = get_infos(rand()) assert Thumbnail(LOGGER).start(db, SAVE_DIR_2)
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)
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)
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)