Files
gitrusprusandCursor 4eb4c145b6 Add JWT auth with per-user data isolation and account settings.
Users can register, log in, and manage profile/password in a personal account page; server data is scoped by owner across contacts, maps, tags, and import.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-28 21:10:16 +03:00

23 lines
617 B
Python

import pytest
@pytest.mark.django_db
def test_graph_empty(api_client):
response = api_client.get('/api/v1/graph/')
assert response.status_code == 200
assert response.data == {'nodes': [], 'edges': []}
@pytest.mark.django_db
def test_graph_with_data(api_client, sample_relation):
response = api_client.get('/api/v1/graph/')
assert response.status_code == 200
assert len(response.data['nodes']) == 2
assert len(response.data['edges']) == 1
@pytest.mark.django_db
def test_legacy_api_path(api_client):
response = api_client.get('/api/graph/')
assert response.status_code == 200