This commit is contained in:
2025-02-16 13:16:53 -05:00
parent f61c437bf5
commit a8014f286a
6 changed files with 233 additions and 11 deletions

25
litterbox_test.py Normal file
View File

@@ -0,0 +1,25 @@
#!/usr/bin/env python3.12
"""Tests for both Catbox & Litterbox"""
import os
import logging
import asyncio
from typing import Optional
from litterbox import LitterboxAsync
from 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:
Litter - %s\n
Cat - %s""", url1, url2)
asyncio.run(test())