# 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)
