Skip to content

Commit 6562e7e

Browse files
committed
build: patch NLTK release 3.9.1
1 parent 4917c0f commit 6562e7e

File tree

3 files changed

+5
-20
lines changed

3 files changed

+5
-20
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ docker = ">=7.1.0"
4949
grpcio = "^1.30.0"
5050
grpcio-health-checking = "^1.30.0"
5151
lxml = ">=4.9.2"
52+
nltk = ">=3.9.1"
5253
numpy= ">=1.14.0,<2.0.0"
5354
pandas = ">=1.1.0,<2.3"
5455
platformdirs = ">=3.6.0"

src/ansys/fluent/core/search.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,10 +295,10 @@ def _write_api_tree_file(api_tree_data: dict, api_object_names: list):
295295
with open(api_tree_file, "w") as json_file:
296296
json.dump(api_tree_data, json_file)
297297

298-
# if write_api_tree_data:
299-
# _write_api_tree_file(
300-
# api_tree_data=api_tree_data, api_object_names=list(api_object_names)
301-
# )
298+
if write_api_tree_data:
299+
_write_api_tree_file(
300+
api_tree_data=api_tree_data, api_object_names=list(api_object_names)
301+
)
302302
return results
303303

304304

tests/test_search.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
)
1717

1818

19-
@pytest.mark.skip()
2019
@pytest.mark.fluent_version("==24.2")
2120
def test_nltk_data_download():
2221
import nltk
@@ -29,7 +28,6 @@ def test_nltk_data_download():
2928
_search_semantic("读", language="cmn", api_tree_data=api_tree_data)
3029

3130

32-
@pytest.mark.skip()
3331
@pytest.mark.fluent_version("==24.2")
3432
@pytest.mark.codegen_required
3533
def test_get_exact_match_for_word_from_names():
@@ -43,7 +41,6 @@ def test_get_exact_match_for_word_from_names():
4341
assert len(exact_match) == 1
4442

4543

46-
@pytest.mark.skip()
4744
@pytest.mark.fluent_version("==24.2")
4845
@pytest.mark.codegen_required
4946
def test_get_capitalize_match_for_word_from_names():
@@ -71,7 +68,6 @@ def test_get_capitalize_match_for_word_from_names():
7168
)
7269

7370

74-
@pytest.mark.skip()
7571
@pytest.mark.fluent_version("==24.2")
7672
@pytest.mark.codegen_required
7773
def test_get_match_case_for_word_from_names():
@@ -105,7 +101,6 @@ def test_get_match_case_for_word_from_names():
105101
)
106102

107103

108-
@pytest.mark.skip()
109104
@pytest.mark.fluent_version("==24.2")
110105
@pytest.mark.codegen_required
111106
def test_get_wildcard_matches_for_word_from_names():
@@ -134,7 +129,6 @@ def test_get_wildcard_matches_for_word_from_names():
134129
)
135130

136131

137-
@pytest.mark.skip()
138132
@pytest.mark.fluent_version("==24.2")
139133
@pytest.mark.codegen_required
140134
def test_get_close_matches_for_word_from_names():
@@ -165,7 +159,6 @@ def test_get_close_matches_for_word_from_names():
165159
assert "sunshine_factor" in close_matches
166160

167161

168-
@pytest.mark.skip()
169162
@pytest.mark.fluent_version("==24.2")
170163
@pytest.mark.codegen_required
171164
def test_search_wildcard(capsys):
@@ -188,7 +181,6 @@ def test_search_wildcard(capsys):
188181
assert "<solver_session>.solution.controls.limits.min_des_tke (Parameter)" in lines
189182

190183

191-
@pytest.mark.skip()
192184
@pytest.mark.fluent_version("==24.2")
193185
@pytest.mark.codegen_required
194186
def test_search_whole_word(capsys):
@@ -216,7 +208,6 @@ def test_search_whole_word(capsys):
216208
)
217209

218210

219-
@pytest.mark.skip()
220211
@pytest.mark.fluent_version("==24.2")
221212
@pytest.mark.codegen_required
222213
def test_search_semantic(capsys):
@@ -230,7 +221,6 @@ def test_search_semantic(capsys):
230221
assert "<solver_session>.tui.preferences.appearance.charts.font (Object)" in lines
231222

232223

233-
@pytest.mark.skip()
234224
@pytest.mark.fluent_version("==24.2")
235225
@pytest.mark.codegen_required
236226
def test_whole_word_search(capsys):
@@ -244,7 +234,6 @@ def test_whole_word_search(capsys):
244234
)
245235

246236

247-
@pytest.mark.skip()
248237
@pytest.mark.fluent_version("==24.2")
249238
@pytest.mark.codegen_required
250239
def test_match_case_search(capsys):
@@ -263,7 +252,6 @@ def test_match_case_search(capsys):
263252
)
264253

265254

266-
@pytest.mark.skip()
267255
@pytest.mark.fluent_version("==24.2")
268256
@pytest.mark.codegen_required
269257
def test_match_whole_word_and_case_search(capsys):
@@ -283,7 +271,6 @@ def test_match_whole_word_and_case_search(capsys):
283271
)
284272

285273

286-
@pytest.mark.skip()
287274
@pytest.mark.fluent_version("==24.2")
288275
@pytest.mark.codegen_required
289276
def test_misspelled_search(capsys):
@@ -295,7 +282,6 @@ def test_misspelled_search(capsys):
295282
)
296283

297284

298-
@pytest.mark.skip()
299285
@pytest.mark.fluent_version("==24.2")
300286
@pytest.mark.codegen_required
301287
def test_wildcard_search(capsys):
@@ -305,7 +291,6 @@ def test_wildcard_search(capsys):
305291
assert "<solver_session>.solution.run_calculation.iterating (Query)" in lines
306292

307293

308-
@pytest.mark.skip()
309294
@pytest.mark.fluent_version("==24.2")
310295
@pytest.mark.codegen_required
311296
def test_chinese_semantic_search(capsys):
@@ -318,7 +303,6 @@ def test_chinese_semantic_search(capsys):
318303
assert "<solver_session>.file.write_case (Command)" in lines
319304

320305

321-
@pytest.mark.skip()
322306
@pytest.mark.fluent_version("==24.2")
323307
@pytest.mark.codegen_required
324308
def test_japanese_semantic_search(capsys):

0 commit comments

Comments
 (0)