1 line
16 KiB
JSON
1 line
16 KiB
JSON
{"nodes": [{"id": "backend_tests_test_users_py", "label": "test_users.py", "file_type": "code", "source_file": "backend/tests/test_users.py", "source_location": "L1"}, {"id": "test_users_testuserauthentication", "label": "TestUserAuthentication", "file_type": "code", "source_file": "backend/tests/test_users.py", "source_location": "L6"}, {"id": "test_users_testuserauthentication_test_login_ldap_success", "label": ".test_login_ldap_success()", "file_type": "code", "source_file": "backend/tests/test_users.py", "source_location": "L9"}, {"id": "test_users_testuserauthentication_test_login_ldap_failure", "label": ".test_login_ldap_failure()", "file_type": "code", "source_file": "backend/tests/test_users.py", "source_location": "L31"}, {"id": "test_users_testuserauthentication_test_login_local_password", "label": ".test_login_local_password()", "file_type": "code", "source_file": "backend/tests/test_users.py", "source_location": "L54"}, {"id": "test_users_testusercrud", "label": "TestUserCRUD", "file_type": "code", "source_file": "backend/tests/test_users.py", "source_location": "L77"}, {"id": "test_users_testusercrud_test_create_user_admin_only", "label": ".test_create_user_admin_only()", "file_type": "code", "source_file": "backend/tests/test_users.py", "source_location": "L80"}, {"id": "test_users_testusercrud_test_create_user_non_admin_denied", "label": ".test_create_user_non_admin_denied()", "file_type": "code", "source_file": "backend/tests/test_users.py", "source_location": "L96"}, {"id": "test_users_testusercrud_test_get_user_in_list", "label": ".test_get_user_in_list()", "file_type": "code", "source_file": "backend/tests/test_users.py", "source_location": "L109"}, {"id": "test_users_testusercrud_test_list_users", "label": ".test_list_users()", "file_type": "code", "source_file": "backend/tests/test_users.py", "source_location": "L123"}, {"id": "test_users_testusercrud_test_update_user_admin_only", "label": ".test_update_user_admin_only()", "file_type": "code", "source_file": "backend/tests/test_users.py", "source_location": "L137"}, {"id": "test_users_testusercrud_test_delete_user_admin_only", "label": ".test_delete_user_admin_only()", "file_type": "code", "source_file": "backend/tests/test_users.py", "source_location": "L154"}, {"id": "test_users_rationale_7", "label": "Test user login (LDAP + local password).", "file_type": "rationale", "source_file": "backend/tests/test_users.py", "source_location": "L7"}, {"id": "test_users_rationale_10", "label": "Test successful LDAP login.", "file_type": "rationale", "source_file": "backend/tests/test_users.py", "source_location": "L10"}, {"id": "test_users_rationale_32", "label": "Test failed LDAP login \u2014 bad password returns 401.", "file_type": "rationale", "source_file": "backend/tests/test_users.py", "source_location": "L32"}, {"id": "test_users_rationale_55", "label": "Test local password authentication (fallback).", "file_type": "rationale", "source_file": "backend/tests/test_users.py", "source_location": "L55"}, {"id": "test_users_rationale_78", "label": "Test user creation, read, update, delete.", "file_type": "rationale", "source_file": "backend/tests/test_users.py", "source_location": "L78"}, {"id": "test_users_rationale_81", "label": "Test creating a user (admin only).", "file_type": "rationale", "source_file": "backend/tests/test_users.py", "source_location": "L81"}, {"id": "test_users_rationale_97", "label": "Test that non-admin users cannot create users.", "file_type": "rationale", "source_file": "backend/tests/test_users.py", "source_location": "L97"}, {"id": "test_users_rationale_110", "label": "Test that created user appears in users list.", "file_type": "rationale", "source_file": "backend/tests/test_users.py", "source_location": "L110"}, {"id": "test_users_rationale_124", "label": "Test listing all users (public endpoint).", "file_type": "rationale", "source_file": "backend/tests/test_users.py", "source_location": "L124"}, {"id": "test_users_rationale_138", "label": "Test updating user (admin only).", "file_type": "rationale", "source_file": "backend/tests/test_users.py", "source_location": "L138"}, {"id": "test_users_rationale_155", "label": "Test deleting user (admin only).", "file_type": "rationale", "source_file": "backend/tests/test_users.py", "source_location": "L155"}], "edges": [{"source": "backend_tests_test_users_py", "target": "pytest", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/tests/test_users.py", "source_location": "L1", "weight": 1.0}, {"source": "backend_tests_test_users_py", "target": "fastapi", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/test_users.py", "source_location": "L2", "weight": 1.0}, {"source": "backend_tests_test_users_py", "target": "unittest_mock", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/test_users.py", "source_location": "L3", "weight": 1.0}, {"source": "backend_tests_test_users_py", "target": "test_users_testuserauthentication", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_users.py", "source_location": "L6", "weight": 1.0}, {"source": "test_users_testuserauthentication", "target": "test_users_testuserauthentication_test_login_ldap_success", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/tests/test_users.py", "source_location": "L9", "weight": 1.0}, {"source": "test_users_testuserauthentication", "target": "test_users_testuserauthentication_test_login_ldap_failure", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/tests/test_users.py", "source_location": "L31", "weight": 1.0}, {"source": "test_users_testuserauthentication", "target": "test_users_testuserauthentication_test_login_local_password", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/tests/test_users.py", "source_location": "L54", "weight": 1.0}, {"source": "backend_tests_test_users_py", "target": "test_users_testusercrud", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_users.py", "source_location": "L77", "weight": 1.0}, {"source": "test_users_testusercrud", "target": "test_users_testusercrud_test_create_user_admin_only", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/tests/test_users.py", "source_location": "L80", "weight": 1.0}, {"source": "test_users_testusercrud", "target": "test_users_testusercrud_test_create_user_non_admin_denied", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/tests/test_users.py", "source_location": "L96", "weight": 1.0}, {"source": "test_users_testusercrud", "target": "test_users_testusercrud_test_get_user_in_list", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/tests/test_users.py", "source_location": "L109", "weight": 1.0}, {"source": "test_users_testusercrud", "target": "test_users_testusercrud_test_list_users", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/tests/test_users.py", "source_location": "L123", "weight": 1.0}, {"source": "test_users_testusercrud", "target": "test_users_testusercrud_test_update_user_admin_only", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/tests/test_users.py", "source_location": "L137", "weight": 1.0}, {"source": "test_users_testusercrud", "target": "test_users_testusercrud_test_delete_user_admin_only", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/tests/test_users.py", "source_location": "L154", "weight": 1.0}, {"source": "test_users_rationale_7", "target": "test_users_testuserauthentication", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_users.py", "source_location": "L7", "weight": 1.0}, {"source": "test_users_rationale_10", "target": "test_users_testuserauthentication_test_login_ldap_success", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_users.py", "source_location": "L10", "weight": 1.0}, {"source": "test_users_rationale_32", "target": "test_users_testuserauthentication_test_login_ldap_failure", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_users.py", "source_location": "L32", "weight": 1.0}, {"source": "test_users_rationale_55", "target": "test_users_testuserauthentication_test_login_local_password", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_users.py", "source_location": "L55", "weight": 1.0}, {"source": "test_users_rationale_78", "target": "test_users_testusercrud", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_users.py", "source_location": "L78", "weight": 1.0}, {"source": "test_users_rationale_81", "target": "test_users_testusercrud_test_create_user_admin_only", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_users.py", "source_location": "L81", "weight": 1.0}, {"source": "test_users_rationale_97", "target": "test_users_testusercrud_test_create_user_non_admin_denied", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_users.py", "source_location": "L97", "weight": 1.0}, {"source": "test_users_rationale_110", "target": "test_users_testusercrud_test_get_user_in_list", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_users.py", "source_location": "L110", "weight": 1.0}, {"source": "test_users_rationale_124", "target": "test_users_testusercrud_test_list_users", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_users.py", "source_location": "L124", "weight": 1.0}, {"source": "test_users_rationale_138", "target": "test_users_testusercrud_test_update_user_admin_only", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_users.py", "source_location": "L138", "weight": 1.0}, {"source": "test_users_rationale_155", "target": "test_users_testusercrud_test_delete_user_admin_only", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_users.py", "source_location": "L155", "weight": 1.0}], "raw_calls": [{"caller_nid": "test_users_testuserauthentication_test_login_ldap_success", "callee": "patch", "source_file": "backend/tests/test_users.py", "source_location": "L23"}, {"caller_nid": "test_users_testuserauthentication_test_login_ldap_success", "callee": "post", "source_file": "backend/tests/test_users.py", "source_location": "L24"}, {"caller_nid": "test_users_testuserauthentication_test_login_ldap_success", "callee": "json", "source_file": "backend/tests/test_users.py", "source_location": "L29"}, {"caller_nid": "test_users_testuserauthentication_test_login_ldap_failure", "callee": "patch", "source_file": "backend/tests/test_users.py", "source_location": "L45"}, {"caller_nid": "test_users_testuserauthentication_test_login_ldap_failure", "callee": "patch", "source_file": "backend/tests/test_users.py", "source_location": "L46"}, {"caller_nid": "test_users_testuserauthentication_test_login_ldap_failure", "callee": "patch", "source_file": "backend/tests/test_users.py", "source_location": "L47"}, {"caller_nid": "test_users_testuserauthentication_test_login_ldap_failure", "callee": "Exception", "source_file": "backend/tests/test_users.py", "source_location": "L47"}, {"caller_nid": "test_users_testuserauthentication_test_login_ldap_failure", "callee": "post", "source_file": "backend/tests/test_users.py", "source_location": "L48"}, {"caller_nid": "test_users_testuserauthentication_test_login_local_password", "callee": "User", "source_file": "backend/tests/test_users.py", "source_location": "L60"}, {"caller_nid": "test_users_testuserauthentication_test_login_local_password", "callee": "get_password_hash", "source_file": "backend/tests/test_users.py", "source_location": "L62"}, {"caller_nid": "test_users_testuserauthentication_test_login_local_password", "callee": "add", "source_file": "backend/tests/test_users.py", "source_location": "L66"}, {"caller_nid": "test_users_testuserauthentication_test_login_local_password", "callee": "commit", "source_file": "backend/tests/test_users.py", "source_location": "L67"}, {"caller_nid": "test_users_testuserauthentication_test_login_local_password", "callee": "post", "source_file": "backend/tests/test_users.py", "source_location": "L69"}, {"caller_nid": "test_users_testuserauthentication_test_login_local_password", "callee": "json", "source_file": "backend/tests/test_users.py", "source_location": "L74"}, {"caller_nid": "test_users_testusercrud_test_create_user_admin_only", "callee": "post", "source_file": "backend/tests/test_users.py", "source_location": "L82"}, {"caller_nid": "test_users_testusercrud_test_create_user_admin_only", "callee": "json", "source_file": "backend/tests/test_users.py", "source_location": "L92"}, {"caller_nid": "test_users_testusercrud_test_create_user_non_admin_denied", "callee": "post", "source_file": "backend/tests/test_users.py", "source_location": "L98"}, {"caller_nid": "test_users_testusercrud_test_get_user_in_list", "callee": "User", "source_file": "backend/tests/test_users.py", "source_location": "L113"}, {"caller_nid": "test_users_testusercrud_test_get_user_in_list", "callee": "add", "source_file": "backend/tests/test_users.py", "source_location": "L114"}, {"caller_nid": "test_users_testusercrud_test_get_user_in_list", "callee": "commit", "source_file": "backend/tests/test_users.py", "source_location": "L115"}, {"caller_nid": "test_users_testusercrud_test_get_user_in_list", "callee": "get", "source_file": "backend/tests/test_users.py", "source_location": "L117"}, {"caller_nid": "test_users_testusercrud_test_get_user_in_list", "callee": "json", "source_file": "backend/tests/test_users.py", "source_location": "L119"}, {"caller_nid": "test_users_testusercrud_test_list_users", "callee": "User", "source_file": "backend/tests/test_users.py", "source_location": "L127"}, {"caller_nid": "test_users_testusercrud_test_list_users", "callee": "User", "source_file": "backend/tests/test_users.py", "source_location": "L128"}, {"caller_nid": "test_users_testusercrud_test_list_users", "callee": "add_all", "source_file": "backend/tests/test_users.py", "source_location": "L129"}, {"caller_nid": "test_users_testusercrud_test_list_users", "callee": "commit", "source_file": "backend/tests/test_users.py", "source_location": "L130"}, {"caller_nid": "test_users_testusercrud_test_list_users", "callee": "get", "source_file": "backend/tests/test_users.py", "source_location": "L132"}, {"caller_nid": "test_users_testusercrud_test_list_users", "callee": "json", "source_file": "backend/tests/test_users.py", "source_location": "L134"}, {"caller_nid": "test_users_testusercrud_test_list_users", "callee": "len", "source_file": "backend/tests/test_users.py", "source_location": "L135"}, {"caller_nid": "test_users_testusercrud_test_update_user_admin_only", "callee": "User", "source_file": "backend/tests/test_users.py", "source_location": "L141"}, {"caller_nid": "test_users_testusercrud_test_update_user_admin_only", "callee": "add", "source_file": "backend/tests/test_users.py", "source_location": "L142"}, {"caller_nid": "test_users_testusercrud_test_update_user_admin_only", "callee": "commit", "source_file": "backend/tests/test_users.py", "source_location": "L143"}, {"caller_nid": "test_users_testusercrud_test_update_user_admin_only", "callee": "put", "source_file": "backend/tests/test_users.py", "source_location": "L145"}, {"caller_nid": "test_users_testusercrud_test_update_user_admin_only", "callee": "json", "source_file": "backend/tests/test_users.py", "source_location": "L151"}, {"caller_nid": "test_users_testusercrud_test_delete_user_admin_only", "callee": "User", "source_file": "backend/tests/test_users.py", "source_location": "L158"}, {"caller_nid": "test_users_testusercrud_test_delete_user_admin_only", "callee": "add", "source_file": "backend/tests/test_users.py", "source_location": "L159"}, {"caller_nid": "test_users_testusercrud_test_delete_user_admin_only", "callee": "commit", "source_file": "backend/tests/test_users.py", "source_location": "L160"}, {"caller_nid": "test_users_testusercrud_test_delete_user_admin_only", "callee": "delete", "source_file": "backend/tests/test_users.py", "source_location": "L163"}, {"caller_nid": "test_users_testusercrud_test_delete_user_admin_only", "callee": "get", "source_file": "backend/tests/test_users.py", "source_location": "L170"}, {"caller_nid": "test_users_testusercrud_test_delete_user_admin_only", "callee": "json", "source_file": "backend/tests/test_users.py", "source_location": "L171"}]} |