mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 16:15:29 +00:00
Disable TestSerenaAgent::test_find_symbol for FSHARP in CI #1039
Use apply instead of apply_ex in test to make exceptions visible
This commit is contained in:
1 parent
7513800a0f
commit
e23800bea4
1 file changed
+2
-2
@@ -126,13 +126,13 @@ class TestSerenaAgent:
|
||||
def test_find_symbol(self, serena_agent: SerenaAgent, symbol_name: str, expected_kind: str, expected_file: str):
|
||||
# skip flaky tests in CI
|
||||
# TODO: Revisit the flaky tests and re-enable once the LS issues are resolved #1039
|
||||
flaky_languages = {Language.FSHARP}
|
||||
flaky_languages = {Language.FSHARP, Language.RUST}
|
||||
if set(serena_agent.get_active_lsp_languages()).intersection(flaky_languages) and is_ci:
|
||||
pytest.skip("Test is flaky and thus skipped in CI environment.")
|
||||
|
||||
agent = serena_agent
|
||||
find_symbol_tool = agent.get_tool(FindSymbolTool)
|
||||
result = find_symbol_tool.apply_ex(name_path_pattern=symbol_name, include_info=True)
|
||||
result = find_symbol_tool.apply(name_path_pattern=symbol_name, include_info=True)
|
||||
|
||||
symbols = json.loads(result)
|
||||
assert any(
|
||||
|
||||
Reference in new issue
Block a user