🐛 fix(util.py): add logic to extract type from Union[Literal['f-string'], Literal['jinja2']] to improve type formatting

🐛 fix(test_prompts_template.py): fix incorrect value for "validate_template" field in test case
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-11-03 10:47:58 -03:00
commit 8887b5ca28
2 changed files with 11 additions and 1 deletions

View file

@ -96,7 +96,7 @@ def test_prompt_template(client: TestClient, logged_in_headers):
"placeholder": "",
"show": False,
"multiline": False,
"value": True,
"value": False,
"password": False,
"name": "validate_template",
"type": "bool",