mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 19:43:15 +00:00
Applies the plan's C5 step: git mv every test per the domain-reorg
move-map (movemap-m50.txt) into tests/{agent,analyzer,auth,dashboard,
github,middleware,models,reviewer,sandbox,slack,tools,webhooks}/, plus
the 13 fork-only placements from the scoping report §2c (Atlassian
webhook tests -> tests/webhooks/, test_atlassian_connect.py and
test_auth_error_leak.py -> tests/auth/, jira/confluence util tests ->
tests/tools/, test_repo_binding_isolation.py -> tests/sandbox/,
bot-identity/autofix tests -> tests/github/).
Path-only move: the only content edits are parents[1] -> parents[2]
fixes in test_e2b_integration.py and test_daytona_integration.py,
required because their __file__-relative ROOT path gained one more
directory level in the move.
Monkeypatch retargets for these files were already completed in C4;
none remained outstanding here.
20 lines
553 B
Python
20 lines
553 B
Python
from __future__ import annotations
|
|
|
|
import uuid
|
|
|
|
|
|
async def test_report_platform_issue_returns_uuid7_report_id() -> None:
|
|
from agent.tools.report_platform_issue import report_platform_issue
|
|
|
|
result = await report_platform_issue()
|
|
|
|
assert set(result) == {"report_id"}
|
|
report_id = uuid.UUID(result["report_id"])
|
|
assert report_id.version == 7
|
|
assert report_id.variant == uuid.RFC_4122
|
|
|
|
|
|
def test_report_platform_issue_exported() -> None:
|
|
from agent.tools import report_platform_issue
|
|
|
|
assert callable(report_platform_issue)
|