reformat (black)
This commit is contained in:
@ -12,14 +12,20 @@ from util.catbox import CatboxAsync
|
||||
logger = logging.getLogger()
|
||||
logger.setLevel(logging.INFO)
|
||||
|
||||
|
||||
async def test() -> None:
|
||||
f = os.path.join(os.path.expanduser("~"), "qu.png")
|
||||
box1: LitterboxAsync = LitterboxAsync()
|
||||
box2: CatboxAsync = CatboxAsync()
|
||||
url1: Optional[str] = await box1.upload(f)
|
||||
url2: Optional[str] = await box2.upload(f)
|
||||
logging.info("""Uploaded URLs:
|
||||
logging.info(
|
||||
"""Uploaded URLs:
|
||||
Litter - %s\n
|
||||
Cat - %s""", url1, url2)
|
||||
|
||||
asyncio.run(test())
|
||||
Cat - %s""",
|
||||
url1,
|
||||
url2,
|
||||
)
|
||||
|
||||
|
||||
asyncio.run(test())
|
||||
|
Reference in New Issue
Block a user