summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/test_storage.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/test_storage.py b/tests/test_storage.py
index 7592920..dde2f40 100755
--- a/tests/test_storage.py
+++ b/tests/test_storage.py
@@ -5,8 +5,6 @@ import os
import asyncio
import tempfile
import aiosqlite
-import string
-import random
from pypaste.server import Paste, Storage, keygen
from pypaste.server.sqlite import Sqlite
from pypaste.server.s3 import S3
@@ -20,12 +18,6 @@ def truncate(path: Path) -> None:
f.truncate(0)
-def generate_key() -> str:
- chars = string.ascii_letters
-
- return "".join(random.choice(chars) for _ in range(10))
-
-
async def test_exists_but_not_in_our_table(storage: Storage) -> None:
key = keygen(6)