c6af9e284a
Tests / catch-all (windows-latest) (push) Has been cancelled
Tests / jvm (macos-latest) (push) Has been cancelled
Tests / jvm (ubuntu-latest) (push) Has been cancelled
Tests / jvm (windows-latest) (push) Has been cancelled
Tests / native (macos-latest) (push) Has been cancelled
Tests / native (ubuntu-latest) (push) Has been cancelled
Tests / native (windows-latest) (push) Has been cancelled
Tests / niche (ubuntu-latest) (push) Has been cancelled
Tests / other-langs (macos-latest) (push) Has been cancelled
Tests / other-langs (ubuntu-latest) (push) Has been cancelled
Tests / other-langs (windows-latest) (push) Has been cancelled
Tests / catch-all (macos-latest) (push) Has been cancelled
Tests / catch-all (ubuntu-latest) (push) Has been cancelled
Docs Build / build (push) Has been cancelled
Docs Build / deploy (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (javascript-typescript) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Codespell / Check for spelling errors (push) Has been cancelled
Build and Push Docker Images / build-and-push (push) Has been cancelled
21 lines
832 B
Python
21 lines
832 B
Python
import pytest
|
|
|
|
from serena.constants import REPO_ROOT
|
|
from serena.jetbrains.jetbrains_plugin_client import JetBrainsPluginClient
|
|
|
|
|
|
class TestSerenaJetBrainsPluginClient:
|
|
@pytest.mark.parametrize(
|
|
"serena_path, plugin_path",
|
|
[
|
|
(REPO_ROOT, REPO_ROOT),
|
|
("/home/user/project", "/home/user/project"),
|
|
("/home/user/project", "//wsl.localhost/Ubuntu-24.04/home/user/project"),
|
|
("/home/user/project", "//wsl$/Ubuntu/home/user/project"),
|
|
("/home/user/project", "//wsl$/Ubuntu/home/user/project"),
|
|
("/mnt/c/Users/user/projects/my-app", "/workspaces/serena/C:/Users/user/projects/my-app"),
|
|
],
|
|
)
|
|
def test_path_matching(self, serena_path, plugin_path) -> None:
|
|
assert JetBrainsPluginClient._paths_match(serena_path, plugin_path)
|