mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-14 00:16:57 +00:00
Revert GH changes, don't run snapshot tests on Windows
This commit is contained in:
1 parent
08e0711ee7
commit
7445bbcc42
3 files changed
+11
-2
No files matched your search
@@ -55,5 +55,11 @@ jobs:
|
||||
run: uv pip install -e ".[dev]"
|
||||
- name: Test with pytest
|
||||
shell: bash
|
||||
# Currently, java and rust seem to cause problems in CI, and snapshot tests seem to cause problems on Windows
|
||||
# probably due to the way the language servers are started and stopped
|
||||
run: |
|
||||
uv run pytest
|
||||
if [[ "$RUNNER_OS" == "Windows" ]]; then
|
||||
uv run pytest -m "not java and not rust and not snapshot"
|
||||
else
|
||||
uv run pytest -m "not java and not rust"
|
||||
fi
|
||||
@@ -258,4 +258,5 @@ markers = [
|
||||
"rust: language server running for Rust",
|
||||
"typescript: language server running for TypeScript",
|
||||
"php: language server running for PHP",
|
||||
"snapshot: snapshot tests",
|
||||
]
|
||||
@@ -14,6 +14,8 @@ from serena.symbol import CodeDiff
|
||||
from src.serena.symbol import SymbolManager
|
||||
from test.conftest import create_ls, get_repo_path
|
||||
|
||||
pytestmark = pytest.mark.snapshot
|
||||
|
||||
|
||||
class EditingTest:
|
||||
def __init__(self, language: Language, rel_path: str):
|
||||
@@ -61,7 +63,7 @@ class EditingTest:
|
||||
def _apply_edit(self, symbol_manager: SymbolManager) -> None:
|
||||
pass
|
||||
|
||||
def _test_diff(self, code_diff: CodeDiff, snapshot) -> None:
|
||||
def _test_diff(self, code_diff: CodeDiff, snapshot: str) -> None:
|
||||
assert code_diff.modified_content == snapshot
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user