This commit is contained in:
2023-03-24 12:00:07 +00:00
parent 822855d584
commit 8ee4f9462e
17 changed files with 7847 additions and 321687 deletions

View File

@ -9,7 +9,12 @@ from app.utils import random_string, random_words, sanitize_next_url, canonicali
def test_random_words():
s = random_words()
assert len(s) > 0
assert s.find("_") > 0
assert s.count("_") == 1
assert len(s) > 3
s = random_words(2, 3)
assert s.count("_") == 0
assert s[-1] in (str(i) for i in range(10))
def test_random_string():