shorter tokens, fix test

This commit is contained in:
Brandon Thomas 2021-12-28 22:53:13 -05:00
parent 556fa360d3
commit 2f74df29ff
2 changed files with 3 additions and 1 deletions

View File

@ -58,6 +58,6 @@ impl Tokens {
}
pub fn new_category() -> AnyhowResult<String> {
random_prefix_crockford_token("CAT:", 32, false)
random_prefix_crockford_token("CAT:", 15, false)
}
}

View File

@ -41,6 +41,7 @@ payload = {
'model_type': 'tts', # tts or w2l
'can_directly_have_models': False,
'can_have_subcategories': True,
'is_mod_approved': True,
}
r = requests.post(category_create_url, cookies=cookies, json=payload)
@ -94,6 +95,7 @@ payload = {
'dropdown_name': 'Edited Dropdown Name',
'can_directly_have_models': True,
'can_have_subcategories': True,
'can_only_mods_apply': False,
'is_mod_approved': True,
'maybe_mod_comments': 'mod comment',
}