Skip to content

Commit f9cca86

Browse files
committed
fix minds name checking
1 parent 9fcf2ba commit f9cca86

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

tests/integration/test_base_flow.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def test_minds():
8282

8383
# create
8484
with pytest.raises(MindNameInvalid):
85-
mind = client.minds.create(
85+
client.minds.create(
8686
invalid_mind_name,
8787
datasources=[ds],
8888
provider='openai'
@@ -110,9 +110,6 @@ def test_minds():
110110
mind = client.minds.get(mind_name)
111111
assert len(mind.datasources) == 2
112112
assert mind.prompt_template == prompt1
113-
114-
with pytest.raises(MindNameInvalid):
115-
client.minds.get(invalid_mind_name)
116113

117114
# list
118115
mind_list = client.minds.list()
@@ -179,6 +176,4 @@ def test_minds():
179176
client.minds.drop(mind_name2)
180177
client.datasources.drop(ds.name)
181178
client.datasources.drop(ds2_cfg.name)
182-
183-
with pytest.raises(MindNameInvalid):
184-
client.minds.drop(invalid_mind_name)
179+

0 commit comments

Comments
 (0)