Ejemplo n.º 1
0
 def test_video_dmc_premium_multi(self):
     if AUTH_P[0] is not None:
         try:
             db = Info(AUTH_P[0], AUTH_P[1], LOGGER).get_data(rand(3))
             assert VideoDmc(multiline=False).start(db, SAVE_DIR_2)
         except aiohttp.ClientError:
             pass
Ejemplo n.º 2
0
 def test_comment_without_directory(self):
     try:
         db = Info(AUTH_N[0], AUTH_N[1], LOGGER).get_data(rand())
         with pytest.raises(utils.MylistArgumentError):
             # noinspection PyTypeChecker
             CommentAsync().start(db, None)
     except aiohttp.ClientError:
         pass
Ejemplo n.º 3
0
 def test_video_dmc_normal_single(self):
     try:
         db = Info(AUTH_N[0], AUTH_N[1], LOGGER).get_data(rand())
         assert VideoDmc(multiline=False).start(db, SAVE_DIR_2)
     except aiohttp.ClientError:
         pass
Ejemplo n.º 4
0
 def test_thumbnail_multi(self):
     try:
         db = Info(AUTH_N[0], AUTH_N[1], LOGGER).get_data(rand(0))
         assert ThumbnailAsync().start(db, SAVE_DIR_2)
     except aiohttp.ClientError:
         pass
Ejemplo n.º 5
0
 def test_comment_multi(self):
     try:
         db = Info(AUTH_N[0], AUTH_N[1], LOGGER).get_data(rand())
         assert CommentAsync().start(db, SAVE_DIR_2, xml=True)
     except aiohttp.ClientError:
         pass