Files
tfm_ainventory/graphify-out/cache/40a0692dfe8e4eef12b0d2aeee0c7e3ae567563eb6819bf798a018da997607d6.json

1 line
16 KiB
JSON

{"nodes": [{"id": "backend_tests_conftest_py", "label": "conftest.py", "file_type": "code", "source_file": "backend/tests/conftest.py", "source_location": "L1"}, {"id": "conftest_mock_scheduler", "label": "mock_scheduler()", "file_type": "code", "source_file": "backend/tests/conftest.py", "source_location": "L45"}, {"id": "conftest_test_db", "label": "test_db()", "file_type": "code", "source_file": "backend/tests/conftest.py", "source_location": "L56"}, {"id": "conftest_test_client", "label": "test_client()", "file_type": "code", "source_file": "backend/tests/conftest.py", "source_location": "L66"}, {"id": "conftest_mock_ldap", "label": "mock_ldap()", "file_type": "code", "source_file": "backend/tests/conftest.py", "source_location": "L86"}, {"id": "conftest_mock_gemini", "label": "mock_gemini()", "file_type": "code", "source_file": "backend/tests/conftest.py", "source_location": "L107"}, {"id": "conftest_mock_claude", "label": "mock_claude()", "file_type": "code", "source_file": "backend/tests/conftest.py", "source_location": "L115"}, {"id": "conftest_mock_config", "label": "mock_config()", "file_type": "code", "source_file": "backend/tests/conftest.py", "source_location": "L123"}, {"id": "conftest_create_test_user", "label": "create_test_user()", "file_type": "code", "source_file": "backend/tests/conftest.py", "source_location": "L134"}, {"id": "conftest_admin_token", "label": "admin_token()", "file_type": "code", "source_file": "backend/tests/conftest.py", "source_location": "L154"}, {"id": "conftest_user_token", "label": "user_token()", "file_type": "code", "source_file": "backend/tests/conftest.py", "source_location": "L160"}, {"id": "conftest_admin_client", "label": "admin_client()", "file_type": "code", "source_file": "backend/tests/conftest.py", "source_location": "L166"}, {"id": "conftest_user_client", "label": "user_client()", "file_type": "code", "source_file": "backend/tests/conftest.py", "source_location": "L189"}, {"id": "conftest_rationale_46", "label": "Shutdown scheduler before and after each test to avoid conflicts.", "file_type": "rationale", "source_file": "backend/tests/conftest.py", "source_location": "L46"}, {"id": "conftest_rationale_57", "label": "Create in-memory SQLite database for tests.", "file_type": "rationale", "source_file": "backend/tests/conftest.py", "source_location": "L57"}, {"id": "conftest_rationale_67", "label": "Create FastAPI test client with mocked database.", "file_type": "rationale", "source_file": "backend/tests/conftest.py", "source_location": "L67"}, {"id": "conftest_rationale_87", "label": "Mock LDAP authentication.", "file_type": "rationale", "source_file": "backend/tests/conftest.py", "source_location": "L87"}, {"id": "conftest_rationale_108", "label": "Mock AI label extraction at the ai_vision level.", "file_type": "rationale", "source_file": "backend/tests/conftest.py", "source_location": "L108"}, {"id": "conftest_rationale_116", "label": "Mock AI label extraction at the ai_vision level (Claude).", "file_type": "rationale", "source_file": "backend/tests/conftest.py", "source_location": "L116"}, {"id": "conftest_rationale_135", "label": "Factory fixture to create test users with tokens.", "file_type": "rationale", "source_file": "backend/tests/conftest.py", "source_location": "L135"}, {"id": "conftest_rationale_155", "label": "Create test admin user and return JWT token.", "file_type": "rationale", "source_file": "backend/tests/conftest.py", "source_location": "L155"}, {"id": "conftest_rationale_161", "label": "Create test regular user and return JWT token.", "file_type": "rationale", "source_file": "backend/tests/conftest.py", "source_location": "L161"}, {"id": "conftest_rationale_167", "label": "Create a test client authenticated as admin.", "file_type": "rationale", "source_file": "backend/tests/conftest.py", "source_location": "L167"}, {"id": "conftest_rationale_190", "label": "Create a test client authenticated as regular user.", "file_type": "rationale", "source_file": "backend/tests/conftest.py", "source_location": "L190"}], "edges": [{"source": "backend_tests_conftest_py", "target": "pytest", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L1", "weight": 1.0}, {"source": "backend_tests_conftest_py", "target": "json", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L2", "weight": 1.0}, {"source": "backend_tests_conftest_py", "target": "typing", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L3", "weight": 1.0}, {"source": "backend_tests_conftest_py", "target": "sqlalchemy", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L4", "weight": 1.0}, {"source": "backend_tests_conftest_py", "target": "sqlalchemy_orm", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L5", "weight": 1.0}, {"source": "backend_tests_conftest_py", "target": "sqlalchemy_pool", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L6", "weight": 1.0}, {"source": "backend_tests_conftest_py", "target": "fastapi_testclient", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L7", "weight": 1.0}, {"source": "backend_tests_conftest_py", "target": "unittest_mock", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L8", "weight": 1.0}, {"source": "backend_tests_conftest_py", "target": "datetime", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L9", "weight": 1.0}, {"source": "backend_tests_conftest_py", "target": "backend_main", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L11", "weight": 1.0}, {"source": "backend_tests_conftest_py", "target": "backend_database", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L12", "weight": 1.0}, {"source": "backend_tests_conftest_py", "target": "backend_models", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L13", "weight": 1.0}, {"source": "backend_tests_conftest_py", "target": "backend_config_manager", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L14", "weight": 1.0}, {"source": "backend_tests_conftest_py", "target": "backend_auth", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L15", "weight": 1.0}, {"source": "backend_tests_conftest_py", "target": "backend_routers_users", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L16", "weight": 1.0}, {"source": "backend_tests_conftest_py", "target": "backend_routers_auth", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L17", "weight": 1.0}, {"source": "backend_tests_conftest_py", "target": "backend_routers_categories", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L18", "weight": 1.0}, {"source": "backend_tests_conftest_py", "target": "conftest_mock_scheduler", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L45", "weight": 1.0}, {"source": "backend_tests_conftest_py", "target": "conftest_test_db", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L56", "weight": 1.0}, {"source": "backend_tests_conftest_py", "target": "conftest_test_client", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L66", "weight": 1.0}, {"source": "backend_tests_conftest_py", "target": "conftest_mock_ldap", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L86", "weight": 1.0}, {"source": "backend_tests_conftest_py", "target": "conftest_mock_gemini", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L107", "weight": 1.0}, {"source": "backend_tests_conftest_py", "target": "conftest_mock_claude", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L115", "weight": 1.0}, {"source": "backend_tests_conftest_py", "target": "conftest_mock_config", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L123", "weight": 1.0}, {"source": "backend_tests_conftest_py", "target": "conftest_create_test_user", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L134", "weight": 1.0}, {"source": "backend_tests_conftest_py", "target": "conftest_admin_token", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L154", "weight": 1.0}, {"source": "backend_tests_conftest_py", "target": "conftest_user_token", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L160", "weight": 1.0}, {"source": "backend_tests_conftest_py", "target": "conftest_admin_client", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L166", "weight": 1.0}, {"source": "backend_tests_conftest_py", "target": "conftest_user_client", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L189", "weight": 1.0}, {"source": "conftest_admin_token", "target": "conftest_create_test_user", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L156", "weight": 1.0}, {"source": "conftest_user_token", "target": "conftest_create_test_user", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L162", "weight": 1.0}, {"source": "conftest_rationale_46", "target": "conftest_mock_scheduler", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L46", "weight": 1.0}, {"source": "conftest_rationale_57", "target": "conftest_test_db", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L57", "weight": 1.0}, {"source": "conftest_rationale_67", "target": "conftest_test_client", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L67", "weight": 1.0}, {"source": "conftest_rationale_87", "target": "conftest_mock_ldap", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L87", "weight": 1.0}, {"source": "conftest_rationale_108", "target": "conftest_mock_gemini", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L108", "weight": 1.0}, {"source": "conftest_rationale_116", "target": "conftest_mock_claude", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L116", "weight": 1.0}, {"source": "conftest_rationale_135", "target": "conftest_create_test_user", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L135", "weight": 1.0}, {"source": "conftest_rationale_155", "target": "conftest_admin_token", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L155", "weight": 1.0}, {"source": "conftest_rationale_161", "target": "conftest_user_token", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L161", "weight": 1.0}, {"source": "conftest_rationale_167", "target": "conftest_admin_client", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L167", "weight": 1.0}, {"source": "conftest_rationale_190", "target": "conftest_user_client", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/conftest.py", "source_location": "L190", "weight": 1.0}], "raw_calls": [{"caller_nid": "conftest_mock_scheduler", "callee": "shutdown", "source_file": "backend/tests/conftest.py", "source_location": "L49"}, {"caller_nid": "conftest_mock_scheduler", "callee": "shutdown", "source_file": "backend/tests/conftest.py", "source_location": "L52"}, {"caller_nid": "conftest_test_db", "callee": "create_all", "source_file": "backend/tests/conftest.py", "source_location": "L58"}, {"caller_nid": "conftest_test_db", "callee": "TestingSessionLocal", "source_file": "backend/tests/conftest.py", "source_location": "L59"}, {"caller_nid": "conftest_test_db", "callee": "close", "source_file": "backend/tests/conftest.py", "source_location": "L61"}, {"caller_nid": "conftest_test_db", "callee": "drop_all", "source_file": "backend/tests/conftest.py", "source_location": "L62"}, {"caller_nid": "conftest_test_client", "callee": "TestClient", "source_file": "backend/tests/conftest.py", "source_location": "L80"}, {"caller_nid": "conftest_test_client", "callee": "clear", "source_file": "backend/tests/conftest.py", "source_location": "L82"}, {"caller_nid": "conftest_mock_ldap", "callee": "patch", "source_file": "backend/tests/conftest.py", "source_location": "L88"}, {"caller_nid": "conftest_mock_ldap", "callee": "patch", "source_file": "backend/tests/conftest.py", "source_location": "L89"}, {"caller_nid": "conftest_mock_ldap", "callee": "MagicMock", "source_file": "backend/tests/conftest.py", "source_location": "L91"}, {"caller_nid": "conftest_mock_ldap", "callee": "MagicMock", "source_file": "backend/tests/conftest.py", "source_location": "L94"}, {"caller_nid": "conftest_mock_ldap", "callee": "MagicMock", "source_file": "backend/tests/conftest.py", "source_location": "L96"}, {"caller_nid": "conftest_mock_ldap", "callee": "MagicMock", "source_file": "backend/tests/conftest.py", "source_location": "L98"}, {"caller_nid": "conftest_mock_gemini", "callee": "patch", "source_file": "backend/tests/conftest.py", "source_location": "L109"}, {"caller_nid": "conftest_mock_claude", "callee": "patch", "source_file": "backend/tests/conftest.py", "source_location": "L117"}, {"caller_nid": "conftest_mock_config", "callee": "object", "source_file": "backend/tests/conftest.py", "source_location": "L125"}, {"caller_nid": "conftest_admin_client", "callee": "TokenData", "source_file": "backend/tests/conftest.py", "source_location": "L171"}, {"caller_nid": "conftest_admin_client", "callee": "now", "source_file": "backend/tests/conftest.py", "source_location": "L175"}, {"caller_nid": "conftest_admin_client", "callee": "pop", "source_file": "backend/tests/conftest.py", "source_location": "L185"}, {"caller_nid": "conftest_user_client", "callee": "TokenData", "source_file": "backend/tests/conftest.py", "source_location": "L194"}, {"caller_nid": "conftest_user_client", "callee": "now", "source_file": "backend/tests/conftest.py", "source_location": "L198"}, {"caller_nid": "conftest_user_client", "callee": "pop", "source_file": "backend/tests/conftest.py", "source_location": "L208"}]}