shorter tokens, fix test
This commit is contained in:
parent
556fa360d3
commit
2f74df29ff
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue