Files
wehub-resource-sync 4e0f4422d0
build-docs / deploy (push) Waiting to run
Check Markdown links / markdown-link-check (push) Waiting to run
Pytest / test (3.11) (push) Waiting to run
Pytest / test (3.12) (push) Waiting to run
chore: import upstream snapshot with attribution
2026-07-13 13:25:42 +08:00

16 lines
491 B
Python

from __future__ import annotations
from pathlib import Path
from sweagent import REPO_ROOT
from sweagent.utils.config import _convert_path_to_abspath, _convert_paths_to_abspath
def test_convert_path_to_abspath():
assert _convert_path_to_abspath("sadf") == REPO_ROOT / "sadf"
assert _convert_path_to_abspath("/sadf") == Path("/sadf")
def test_convert_paths_to_abspath():
assert _convert_paths_to_abspath([Path("sadf"), Path("/sadf")]) == [REPO_ROOT / "sadf", Path("/sadf")]