{"nodes": [{"id": "$graphify-root$_backend_tests_unit_test_auth_service_py", "label": "test_auth_service.py", "file_type": "code", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L1"}, {"id": "fixture", "label": "fixture", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/backend/tests/unit/test_auth_service.py"}, {"id": "$graphify-root$_backend_tests_unit_test_auth_service_db", "label": "db()", "file_type": "code", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L20", "_callable": true}, {"id": "$graphify-root$_backend_tests_unit_test_auth_service_mock_user", "label": "mock_user()", "file_type": "code", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L25", "_callable": true}, {"id": "$graphify-root$_backend_tests_unit_test_auth_service_mock_user_token", "label": "mock_user_token()", "file_type": "code", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L35", "_callable": true}, {"id": "$graphify-root$_backend_tests_unit_test_auth_service_test_is_user_allowed", "label": "test_is_user_allowed()", "file_type": "code", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L44", "_callable": true}, {"id": "$graphify-root$_backend_tests_unit_test_auth_service_test_extract_email_from_token", "label": "test_extract_email_from_token()", "file_type": "code", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L50", "_callable": true}, {"id": "$graphify-root$_backend_tests_unit_test_auth_service_test_verify_tms_token_success", "label": "test_verify_tms_token_success()", "file_type": "code", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L65", "_callable": true}, {"id": "$graphify-root$_backend_tests_unit_test_auth_service_test_verify_tms_token_failure", "label": "test_verify_tms_token_failure()", "file_type": "code", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L73", "_callable": true}, {"id": "$graphify-root$_backend_tests_unit_test_auth_service_test_handshake_dev_mode", "label": "test_handshake_dev_mode()", "file_type": "code", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L81", "_callable": true}, {"id": "$graphify-root$_backend_tests_unit_test_auth_service_test_handshake_prod_mode_success", "label": "test_handshake_prod_mode_success()", "file_type": "code", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L89", "_callable": true}, {"id": "$graphify-root$_backend_tests_unit_test_auth_service_test_handshake_prod_mode_failure", "label": "test_handshake_prod_mode_failure()", "file_type": "code", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L99", "_callable": true}, {"id": "$graphify-root$_backend_tests_unit_test_auth_service_test_get_current_user_success", "label": "test_get_current_user_success()", "file_type": "code", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L105", "_callable": true}, {"id": "$graphify-root$_backend_tests_unit_test_auth_service_test_get_current_user_failure", "label": "test_get_current_user_failure()", "file_type": "code", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L115", "_callable": true}, {"id": "$graphify-root$_backend_tests_unit_test_auth_service_test_logout", "label": "test_logout()", "file_type": "code", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L120", "_callable": true}], "edges": [{"source": "$graphify-root$_backend_tests_unit_test_auth_service_py", "target": "os", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L1", "weight": 1.0, "_python_import_module": "os", "_python_import_bindings": [["os", "os"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_backend_tests_unit_test_auth_service_py", "target": "pytest", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L2", "weight": 1.0, "_python_import_module": "pytest", "_python_import_bindings": [["pytest", "pytest"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_backend_tests_unit_test_auth_service_py", "target": "unittest_mock", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L3", "weight": 1.0, "_python_import_module": "unittest.mock", "_python_import_bindings": [["MagicMock", "MagicMock"], ["patch", "patch"]]}, {"source": "$graphify-root$_backend_tests_unit_test_auth_service_py", "target": "datetime", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L4", "weight": 1.0, "_python_import_module": "datetime", "_python_import_bindings": [["datetime", "datetime"], ["timedelta", "timedelta"]]}, {"source": "$graphify-root$_backend_tests_unit_test_auth_service_py", "target": "sqlalchemy_orm", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L5", "weight": 1.0, "_python_import_module": "sqlalchemy.orm", "_python_import_bindings": [["Session", "Session"]]}, {"source": "$graphify-root$_backend_tests_unit_test_auth_service_py", "target": "$graphify-root$_backend_app_services_auth_service_py", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L7", "weight": 1.0, "_python_import_module": "app.services.auth_service", "_python_import_bindings": [["handshake", "handshake"], ["get_current_user", "get_current_user"], ["logout", "logout"], ["_extract_email_from_token", "_extract_email_from_token"], ["is_user_allowed", "is_user_allowed"], ["verify_tms_token", "verify_tms_token"]], "target_file": "$graphify-root$/backend/app/services/auth_service.py"}, {"source": "$graphify-root$_backend_tests_unit_test_auth_service_py", "target": "$graphify-root$_backend_app_db_models_py", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L15", "weight": 1.0, "_python_import_module": "app.db.models", "_python_import_bindings": [["User", "User"], ["UserToken", "UserToken"]], "target_file": "$graphify-root$/backend/app/db/models.py"}, {"source": "$graphify-root$_backend_tests_unit_test_auth_service_py", "target": "$graphify-root$_backend_app_core_config_py", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L16", "weight": 1.0, "_python_import_module": "app.core.config", "_python_import_bindings": [["settings", "settings"]], "target_file": "$graphify-root$/backend/app/core/config.py"}, {"source": "$graphify-root$_backend_tests_unit_test_auth_service_db", "target": "fixture", "relation": "references", "confidence": "EXTRACTED", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L19", "weight": 1.0, "context": "decorator"}, {"source": "$graphify-root$_backend_tests_unit_test_auth_service_py", "target": "$graphify-root$_backend_tests_unit_test_auth_service_db", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L20", "weight": 1.0}, {"source": "$graphify-root$_backend_tests_unit_test_auth_service_mock_user", "target": "fixture", "relation": "references", "confidence": "EXTRACTED", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L24", "weight": 1.0, "context": "decorator"}, {"source": "$graphify-root$_backend_tests_unit_test_auth_service_py", "target": "$graphify-root$_backend_tests_unit_test_auth_service_mock_user", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L25", "weight": 1.0}, {"source": "$graphify-root$_backend_tests_unit_test_auth_service_mock_user_token", "target": "fixture", "relation": "references", "confidence": "EXTRACTED", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L34", "weight": 1.0, "context": "decorator"}, {"source": "$graphify-root$_backend_tests_unit_test_auth_service_py", "target": "$graphify-root$_backend_tests_unit_test_auth_service_mock_user_token", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L35", "weight": 1.0}, {"source": "$graphify-root$_backend_tests_unit_test_auth_service_py", "target": "$graphify-root$_backend_tests_unit_test_auth_service_test_is_user_allowed", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L44", "weight": 1.0}, {"source": "$graphify-root$_backend_tests_unit_test_auth_service_py", "target": "$graphify-root$_backend_tests_unit_test_auth_service_test_extract_email_from_token", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L50", "weight": 1.0}, {"source": "$graphify-root$_backend_tests_unit_test_auth_service_py", "target": "$graphify-root$_backend_tests_unit_test_auth_service_test_verify_tms_token_success", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L65", "weight": 1.0}, {"source": "$graphify-root$_backend_tests_unit_test_auth_service_py", "target": "$graphify-root$_backend_tests_unit_test_auth_service_test_verify_tms_token_failure", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L73", "weight": 1.0}, {"source": "$graphify-root$_backend_tests_unit_test_auth_service_py", "target": "$graphify-root$_backend_tests_unit_test_auth_service_test_handshake_dev_mode", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L81", "weight": 1.0}, {"source": "$graphify-root$_backend_tests_unit_test_auth_service_py", "target": "$graphify-root$_backend_tests_unit_test_auth_service_test_handshake_prod_mode_success", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L89", "weight": 1.0}, {"source": "$graphify-root$_backend_tests_unit_test_auth_service_py", "target": "$graphify-root$_backend_tests_unit_test_auth_service_test_handshake_prod_mode_failure", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L99", "weight": 1.0}, {"source": "$graphify-root$_backend_tests_unit_test_auth_service_py", "target": "$graphify-root$_backend_tests_unit_test_auth_service_test_get_current_user_success", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L105", "weight": 1.0}, {"source": "$graphify-root$_backend_tests_unit_test_auth_service_py", "target": "$graphify-root$_backend_tests_unit_test_auth_service_test_get_current_user_failure", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L115", "weight": 1.0}, {"source": "$graphify-root$_backend_tests_unit_test_auth_service_py", "target": "$graphify-root$_backend_tests_unit_test_auth_service_test_logout", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L120", "weight": 1.0}], "raw_calls": [{"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_db", "callee": "MagicMock", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L21", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_db", "callee": "Session", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L21"}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_mock_user", "callee": "MagicMock", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L26", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_mock_user", "callee": "User", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L26"}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_mock_user_token", "callee": "MagicMock", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L36", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_mock_user_token", "callee": "UserToken", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L36"}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_mock_user_token", "callee": "utcnow", "is_member_call": true, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L40", "receiver": "datetime", "_python_receiver_shadowed": true}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_mock_user_token", "callee": "timedelta", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L40", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_is_user_allowed", "callee": "patch", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L45", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_is_user_allowed", "callee": "is_user_allowed", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L46", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_is_user_allowed", "callee": "is_user_allowed", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L47", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_extract_email_from_token", "callee": "encode", "is_member_call": true, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L55", "receiver": "jwt", "_python_receiver_shadowed": true}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_extract_email_from_token", "callee": "_extract_email_from_token", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L56", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_extract_email_from_token", "callee": "encode", "is_member_call": true, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L59", "receiver": "jwt", "_python_receiver_shadowed": true}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_extract_email_from_token", "callee": "_extract_email_from_token", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L60", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_extract_email_from_token", "callee": "_extract_email_from_token", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L62", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_verify_tms_token_success", "callee": "patch", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L66", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_verify_tms_token_success", "callee": "MagicMock", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L67", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_verify_tms_token_success", "callee": "verify_tms_token", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L70", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_verify_tms_token_failure", "callee": "patch", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L74", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_verify_tms_token_failure", "callee": "MagicMock", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L75", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_verify_tms_token_failure", "callee": "verify_tms_token", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L78", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_handshake_dev_mode", "callee": "patch", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L82", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_handshake_dev_mode", "callee": "patch", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L83", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_handshake_dev_mode", "callee": "handshake", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L85", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_handshake_prod_mode_success", "callee": "patch", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L90", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_handshake_prod_mode_success", "callee": "patch", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L91", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_handshake_prod_mode_success", "callee": "patch", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L92", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_handshake_prod_mode_success", "callee": "patch", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L93", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_handshake_prod_mode_success", "callee": "handshake", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L95", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_handshake_prod_mode_failure", "callee": "dict", "is_member_call": true, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L100", "receiver": "patch", "_python_receiver_shadowed": true}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_handshake_prod_mode_failure", "callee": "patch", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L101", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_handshake_prod_mode_failure", "callee": "handshake", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L102", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_get_current_user_success", "callee": "patch", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L106", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_get_current_user_success", "callee": "MagicMock", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L107", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_get_current_user_success", "callee": "get_current_user", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L110", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_get_current_user_failure", "callee": "patch", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L116", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_get_current_user_failure", "callee": "get_current_user", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L117", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_logout", "callee": "MagicMock", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L121", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_logout", "callee": "logout", "is_member_call": false, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L123", "receiver": null}, {"caller_nid": "$graphify-root$_backend_tests_unit_test_auth_service_test_logout", "callee": "assert_called_once", "is_member_call": true, "source_file": "backend/tests/unit/test_auth_service.py", "source_location": "L126", "receiver": null, "_python_receiver_shadowed": true}], "_cached_target_files": ["$graphify-root$/backend/app/core/config.py", "$graphify-root$/backend/app/db/models.py", "$graphify-root$/backend/app/services/auth_service.py"]}