Fix: Observability session data display issue#4736
Open
ashrafchowdury wants to merge 4 commits into
Open
GitHub Actions / Application API Unit Test Results
failed
Jun 18, 2026 in 0s
1 fail, 862 pass in 21s
863 tests 862 ✅ 21s ⏱️
1 suites 0 💤
1 files 1 ❌
Results for commit afc1ba4.
Annotations
Check warning on line 0 in oss.tests.pytest.unit.services.test_db_manager
github-actions / Application API Unit Test Results
test_get_default_workspace_id_prefers_owner_membership (oss.tests.pytest.unit.services.test_db_manager) failed
api/oss/tests/results/junit.xml [took 0s]
Raw output
AssertionError: assert '9db284d6-acc...-cfda73837e3b' == '8b197d38-7ae...-3cb5c94d7448'
- 8b197d38-7aeb-4c71-a245-3cb5c94d7448
+ 9db284d6-acc1-435e-8f7f-cfda73837e3b
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f1af8eec1a0>
@pytest.mark.asyncio
async def test_get_default_workspace_id_prefers_owner_membership(monkeypatch):
owner_workspace_id = uuid4()
editor_workspace_id = uuid4()
_patch_core_session(
monkeypatch,
[
SimpleNamespace(
workspace_id=editor_workspace_id,
role="editor",
created_at=datetime(2026, 4, 9, tzinfo=timezone.utc),
),
SimpleNamespace(
workspace_id=owner_workspace_id,
role="owner",
created_at=datetime(2026, 4, 10, tzinfo=timezone.utc),
),
],
)
workspace_id = await db_manager.get_default_workspace_id(str(uuid4()))
> assert workspace_id == str(owner_workspace_id)
E AssertionError: assert '9db284d6-acc...-cfda73837e3b' == '8b197d38-7ae...-3cb5c94d7448'
E
E - 8b197d38-7aeb-4c71-a245-3cb5c94d7448
E + 9db284d6-acc1-435e-8f7f-cfda73837e3b
oss/tests/pytest/unit/services/test_db_manager.py:80: AssertionError
Loading