mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 08:03:15 +00:00
17 lines
449 B
Python
17 lines
449 B
Python
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
import pytest
|
||
|
|
|
||
|
|
from agent.dashboard.review_styles import normalize_repo_full_name
|
||
|
|
|
||
|
|
|
||
|
|
def test_normalize_repo_full_name_accepts_urls() -> None:
|
||
|
|
assert normalize_repo_full_name("https://github.com/langchain-ai/langgraph") == (
|
||
|
|
"langchain-ai/langgraph"
|
||
|
|
)
|
||
|
|
|
||
|
|
|
||
|
|
def test_normalize_repo_full_name_rejects_invalid() -> None:
|
||
|
|
with pytest.raises(ValueError):
|
||
|
|
normalize_repo_full_name("not-a-repo")
|