1 line
22 KiB
JSON
1 line
22 KiB
JSON
{"nodes": [{"id": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_py", "label": "test_user_service.py", "file_type": "code", "source_file": "tests/test_user_service.py", "source_location": "L1"}, {"id": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_env", "label": "env()", "file_type": "code", "source_file": "tests/test_user_service.py", "source_location": "L14", "_callable": true}, {"id": "userservice", "label": "UserService", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/senko/Work/mcma-compose/mcma-backend/tests/test_user_service.py"}, {"id": "authservice", "label": "AuthService", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/senko/Work/mcma-compose/mcma-backend/tests/test_user_service.py"}, {"id": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_create_user_duplicate_username", "label": "test_create_user_duplicate_username()", "file_type": "code", "source_file": "tests/test_user_service.py", "source_location": "L24", "_callable": true}, {"id": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_get_unknown_user_raises", "label": "test_get_unknown_user_raises()", "file_type": "code", "source_file": "tests/test_user_service.py", "source_location": "L31", "_callable": true}, {"id": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_change_password_requires_current", "label": "test_change_password_requires_current()", "file_type": "code", "source_file": "tests/test_user_service.py", "source_location": "L39", "_callable": true}, {"id": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_change_password_revokes_sessions", "label": "test_change_password_revokes_sessions()", "file_type": "code", "source_file": "tests/test_user_service.py", "source_location": "L57", "_callable": true}, {"id": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_reset_password_revokes_sessions", "label": "test_reset_password_revokes_sessions()", "file_type": "code", "source_file": "tests/test_user_service.py", "source_location": "L69", "_callable": true}, {"id": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_deactivate_revokes_sessions", "label": "test_deactivate_revokes_sessions()", "file_type": "code", "source_file": "tests/test_user_service.py", "source_location": "L80", "_callable": true}, {"id": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_rationale_1", "label": "Unit tests for UserService using in-memory ports.", "file_type": "rationale", "source_file": "tests/test_user_service.py", "source_location": "L1"}], "edges": [{"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_py", "target": "pytest", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L3", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_py", "target": "app_application_auth_service", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L4", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_py", "target": "app_application_user_service", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L5", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_py", "target": "app_core_config", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L6", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_py", "target": "app_core_security", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L7", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_py", "target": "app_domain_errors", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L8", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_py", "target": "tests_fakes", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L10", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_py", "target": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_env", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L14", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_env", "target": "userservice", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L14", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_env", "target": "authservice", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L14", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_py", "target": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_create_user_duplicate_username", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L24", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_create_user_duplicate_username", "target": "userservice", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L24", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_create_user_duplicate_username", "target": "authservice", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L24", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_py", "target": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_get_unknown_user_raises", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L31", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_get_unknown_user_raises", "target": "userservice", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L31", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_get_unknown_user_raises", "target": "authservice", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L31", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_py", "target": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_change_password_requires_current", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L39", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_change_password_requires_current", "target": "userservice", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L39", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_change_password_requires_current", "target": "authservice", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L39", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_py", "target": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_change_password_revokes_sessions", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L57", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_change_password_revokes_sessions", "target": "userservice", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L57", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_change_password_revokes_sessions", "target": "authservice", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L57", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_py", "target": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_reset_password_revokes_sessions", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L69", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_reset_password_revokes_sessions", "target": "userservice", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L69", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_reset_password_revokes_sessions", "target": "authservice", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L69", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_py", "target": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_deactivate_revokes_sessions", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L80", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_deactivate_revokes_sessions", "target": "userservice", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L80", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_deactivate_revokes_sessions", "target": "authservice", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L80", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_env", "target": "userservice", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L19", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_env", "target": "authservice", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L20", "weight": 1.0}, {"source": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_rationale_1", "target": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "tests/test_user_service.py", "source_location": "L1", "weight": 1.0}], "raw_calls": [{"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_env", "callee": "InMemoryUserRepository", "is_member_call": false, "source_file": "tests/test_user_service.py", "source_location": "L15", "receiver": null}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_env", "callee": "InMemoryRefreshTokenRepository", "is_member_call": false, "source_file": "tests/test_user_service.py", "source_location": "L16", "receiver": null}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_env", "callee": "Argon2PasswordHasher", "is_member_call": false, "source_file": "tests/test_user_service.py", "source_location": "L17", "receiver": null}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_env", "callee": "JwtTokenService", "is_member_call": false, "source_file": "tests/test_user_service.py", "source_location": "L18", "receiver": null}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_env", "callee": "Settings", "is_member_call": false, "source_file": "tests/test_user_service.py", "source_location": "L18", "receiver": null}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_create_user_duplicate_username", "callee": "create_user", "is_member_call": true, "source_file": "tests/test_user_service.py", "source_location": "L26", "receiver": "user_svc"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_create_user_duplicate_username", "callee": "raises", "is_member_call": true, "source_file": "tests/test_user_service.py", "source_location": "L27", "receiver": "pytest"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_create_user_duplicate_username", "callee": "AlreadyExistsError", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tests/test_user_service.py", "source_location": "L27"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_create_user_duplicate_username", "callee": "create_user", "is_member_call": true, "source_file": "tests/test_user_service.py", "source_location": "L28", "receiver": "user_svc"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_get_unknown_user_raises", "callee": "raises", "is_member_call": true, "source_file": "tests/test_user_service.py", "source_location": "L35", "receiver": "pytest"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_get_unknown_user_raises", "callee": "NotFoundError", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tests/test_user_service.py", "source_location": "L35"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_get_unknown_user_raises", "callee": "get_user", "is_member_call": true, "source_file": "tests/test_user_service.py", "source_location": "L36", "receiver": "user_svc"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_get_unknown_user_raises", "callee": "uuid4", "is_member_call": true, "source_file": "tests/test_user_service.py", "source_location": "L36", "receiver": "uuid"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_change_password_requires_current", "callee": "create_user", "is_member_call": true, "source_file": "tests/test_user_service.py", "source_location": "L41", "receiver": "user_svc"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_change_password_requires_current", "callee": "raises", "is_member_call": true, "source_file": "tests/test_user_service.py", "source_location": "L43", "receiver": "pytest"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_change_password_requires_current", "callee": "AuthenticationError", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tests/test_user_service.py", "source_location": "L43"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_change_password_requires_current", "callee": "change_password", "is_member_call": true, "source_file": "tests/test_user_service.py", "source_location": "L44", "receiver": "user_svc"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_change_password_requires_current", "callee": "change_password", "is_member_call": true, "source_file": "tests/test_user_service.py", "source_location": "L48", "receiver": "user_svc"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_change_password_requires_current", "callee": "login", "is_member_call": true, "source_file": "tests/test_user_service.py", "source_location": "L52", "receiver": "auth"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_change_password_requires_current", "callee": "raises", "is_member_call": true, "source_file": "tests/test_user_service.py", "source_location": "L53", "receiver": "pytest"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_change_password_requires_current", "callee": "AuthenticationError", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tests/test_user_service.py", "source_location": "L53"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_change_password_requires_current", "callee": "login", "is_member_call": true, "source_file": "tests/test_user_service.py", "source_location": "L54", "receiver": "auth"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_change_password_revokes_sessions", "callee": "create_user", "is_member_call": true, "source_file": "tests/test_user_service.py", "source_location": "L59", "receiver": "user_svc"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_change_password_revokes_sessions", "callee": "login", "is_member_call": true, "source_file": "tests/test_user_service.py", "source_location": "L60", "receiver": "auth"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_change_password_revokes_sessions", "callee": "change_password", "is_member_call": true, "source_file": "tests/test_user_service.py", "source_location": "L62", "receiver": "user_svc"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_change_password_revokes_sessions", "callee": "raises", "is_member_call": true, "source_file": "tests/test_user_service.py", "source_location": "L65", "receiver": "pytest"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_change_password_revokes_sessions", "callee": "AuthenticationError", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tests/test_user_service.py", "source_location": "L65"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_change_password_revokes_sessions", "callee": "refresh", "is_member_call": true, "source_file": "tests/test_user_service.py", "source_location": "L66", "receiver": "auth"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_reset_password_revokes_sessions", "callee": "create_user", "is_member_call": true, "source_file": "tests/test_user_service.py", "source_location": "L71", "receiver": "user_svc"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_reset_password_revokes_sessions", "callee": "login", "is_member_call": true, "source_file": "tests/test_user_service.py", "source_location": "L72", "receiver": "auth"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_reset_password_revokes_sessions", "callee": "reset_password", "is_member_call": true, "source_file": "tests/test_user_service.py", "source_location": "L74", "receiver": "user_svc"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_reset_password_revokes_sessions", "callee": "raises", "is_member_call": true, "source_file": "tests/test_user_service.py", "source_location": "L75", "receiver": "pytest"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_reset_password_revokes_sessions", "callee": "AuthenticationError", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tests/test_user_service.py", "source_location": "L75"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_reset_password_revokes_sessions", "callee": "refresh", "is_member_call": true, "source_file": "tests/test_user_service.py", "source_location": "L76", "receiver": "auth"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_reset_password_revokes_sessions", "callee": "login", "is_member_call": true, "source_file": "tests/test_user_service.py", "source_location": "L77", "receiver": "auth"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_deactivate_revokes_sessions", "callee": "create_user", "is_member_call": true, "source_file": "tests/test_user_service.py", "source_location": "L82", "receiver": "user_svc"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_deactivate_revokes_sessions", "callee": "login", "is_member_call": true, "source_file": "tests/test_user_service.py", "source_location": "L83", "receiver": "auth"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_deactivate_revokes_sessions", "callee": "deactivate", "is_member_call": true, "source_file": "tests/test_user_service.py", "source_location": "L85", "receiver": "user_svc"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_deactivate_revokes_sessions", "callee": "raises", "is_member_call": true, "source_file": "tests/test_user_service.py", "source_location": "L87", "receiver": "pytest"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_deactivate_revokes_sessions", "callee": "AuthenticationError", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "tests/test_user_service.py", "source_location": "L87"}, {"caller_nid": "users_senko_work_mcma_compose_mcma_backend_tests_test_user_service_test_deactivate_revokes_sessions", "callee": "refresh", "is_member_call": true, "source_file": "tests/test_user_service.py", "source_location": "L88", "receiver": "auth"}]} |