fix: password setting improvements

This commit is contained in:
Gabriel Almeida 2023-04-06 14:24:00 -03:00
commit 26524e3b6d
3 changed files with 31 additions and 30 deletions

View file

@ -49,7 +49,7 @@ def test_conversation_chain(client: TestClient):
"show": False,
"multiline": False,
"value": "input",
"password": True,
"password": False,
"name": "input_key",
"type": "str",
"list": False,
@ -60,7 +60,7 @@ def test_conversation_chain(client: TestClient):
"show": False,
"multiline": False,
"value": "response",
"password": True,
"password": False,
"name": "output_key",
"type": "str",
"list": False,
@ -121,7 +121,7 @@ def test_llm_chain(client: TestClient):
"show": False,
"multiline": False,
"value": "text",
"password": True,
"password": False,
"name": "output_key",
"type": "str",
"list": False,
@ -175,7 +175,7 @@ def test_llm_checker_chain(client: TestClient):
"show": False,
"multiline": False,
"value": "query",
"password": True,
"password": False,
"name": "input_key",
"type": "str",
"list": False,
@ -186,7 +186,7 @@ def test_llm_checker_chain(client: TestClient):
"show": False,
"multiline": False,
"value": "result",
"password": True,
"password": False,
"name": "output_key",
"type": "str",
"list": False,
@ -247,7 +247,7 @@ def test_llm_math_chain(client: TestClient):
"show": False,
"multiline": False,
"value": "question",
"password": True,
"password": False,
"name": "input_key",
"type": "str",
"list": False,
@ -258,7 +258,7 @@ def test_llm_math_chain(client: TestClient):
"show": False,
"multiline": False,
"value": "answer",
"password": True,
"password": False,
"name": "output_key",
"type": "str",
"list": False,
@ -334,7 +334,7 @@ def test_series_character_chain(client: TestClient):
"show": False,
"multiline": False,
"value": "input",
"password": True,
"password": False,
"name": "input_key",
"type": "str",
"list": False,
@ -345,7 +345,7 @@ def test_series_character_chain(client: TestClient):
"show": False,
"multiline": False,
"value": "response",
"password": True,
"password": False,
"name": "output_key",
"type": "str",
"list": False,
@ -361,14 +361,14 @@ def test_series_character_chain(client: TestClient):
"type": "str",
"list": False,
}
assert template["ai_prefix_key"] == {
assert template["ai_prefix_value"] == {
"required": False,
"placeholder": "",
"show": False,
"multiline": False,
"value": "character",
"password": True,
"name": "ai_prefix_key",
"password": False,
"name": "ai_prefix_value",
"type": "str",
"list": False,
}
@ -485,7 +485,7 @@ def test_mid_journey_prompt_chain(client: TestClient):
"show": False,
"multiline": False,
"value": "response",
"password": True,
"password": False,
"name": "output_key",
"type": "str",
"list": False,
@ -496,7 +496,7 @@ def test_mid_journey_prompt_chain(client: TestClient):
"show": False,
"multiline": False,
"value": "input",
"password": True,
"password": False,
"name": "input_key",
"type": "str",
"list": False,
@ -512,13 +512,13 @@ def test_mid_journey_prompt_chain(client: TestClient):
"type": "str",
"list": False,
}
assert template["ai_prefix_key"] == {
assert template["ai_prefix_value"] == {
"required": False,
"placeholder": "",
"show": False,
"multiline": False,
"password": True,
"name": "ai_prefix_key",
"password": False,
"name": "ai_prefix_value",
"type": "str",
"list": False,
}
@ -613,7 +613,7 @@ def test_time_travel_guide_chain(client: TestClient):
"show": False,
"multiline": False,
"value": "response",
"password": True,
"password": False,
"name": "output_key",
"type": "str",
"list": False,
@ -625,7 +625,7 @@ def test_time_travel_guide_chain(client: TestClient):
"show": False,
"multiline": False,
"value": "input",
"password": True,
"password": False,
"name": "input_key",
"type": "str",
"list": False,
@ -642,13 +642,13 @@ def test_time_travel_guide_chain(client: TestClient):
"type": "str",
"list": False,
}
assert template["ai_prefix_key"] == {
assert template["ai_prefix_value"] == {
"required": False,
"placeholder": "",
"show": False,
"multiline": False,
"password": True,
"name": "ai_prefix_key",
"password": False,
"name": "ai_prefix_value",
"type": "str",
"list": False,
}