Add test_session, add randomizers, move test_app, user/session fixtures

This commit is contained in:
2024-11-09 17:00:45 -06:00
parent 35d967360d
commit d725d1b863
5 changed files with 76 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import random
import string
import time
def epoch() -> int:
return int(time.time())
def random_string(length: int = 10) -> str:
return "".join(random.choices(string.ascii_lowercase + string.digits, k=length))
def random_email() -> str:
return random_string() + str(epoch()) + "@example.com"