Files
devplacepy/tests/e2e/notifications/counts.py
T
retoor 43f4011005 chore: reorganize test files into domain-specific subdirectories under tests/
Split the monolithic test directory into three tiers (unit, api, e2e) with a path-mirroring directory structure. Added corresponding Makefile targets (test-unit, test-api, test-e2e) and updated all documentation references (CLAUDE.md, README.md, testing-cicd.html, testing-framework.html, testing-make.html) to reflect the new layout and naming conventions.
2026-06-13 14:32:33 +00:00

18 lines
555 B
Python

# retoor <retoor@molodetz.nl>
from datetime import datetime, timedelta, timezone
from tests.conftest import BASE_URL
from devplacepy.database import get_table
from devplacepy.utils import generate_uid
def test_notifications_counts_returns_json(alice):
page, user = alice
resp = page.request.get(f"{BASE_URL}/notifications/counts")
assert resp.status == 200
data = resp.json()
assert "notifications" in data
assert "messages" in data
assert isinstance(data["notifications"], int)
assert isinstance(data["messages"], int)