test: Fix assertion in test_get_vertices function. (#3387)
* test: Fix assertion in test_get_vertices function. * test: fix set --------- Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
This commit is contained in:
parent
dc10cdd1d5
commit
e4e1a747f8
1 changed files with 3 additions and 2 deletions
|
|
@ -407,11 +407,12 @@ def test_get_vertices(client, added_flow_with_prompt_and_history, logged_in_head
|
|||
# ['ConversationBufferMemory-Lu2Nb', 'PromptTemplate-5Q0W8', 'ChatOpenAI-vy7fV', 'LLMChain-UjBh1']
|
||||
# The important part is before the - (ConversationBufferMemory, PromptTemplate, ChatOpenAI, LLMChain)
|
||||
ids = [_id.split("-")[0] for _id in response.json()["ids"]]
|
||||
assert ids == [
|
||||
|
||||
assert set(ids) == {
|
||||
"ChatOpenAI",
|
||||
"PromptTemplate",
|
||||
"ConversationBufferMemory",
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
def test_build_vertex_invalid_flow_id(client, logged_in_headers):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue