Files
tfm_ainventory/graphify-out/cache/bdde01400c2875381a32baba9425a8b9a247765337748923b53a4ca587c4e563.json

1 line
25 KiB
JSON

{"nodes": [{"id": "backend_tests_test_static_files_py", "label": "test_static_files.py", "file_type": "code", "source_file": "backend/tests/test_static_files.py", "source_location": "L1"}, {"id": "test_static_files_setup_images_directory", "label": "setup_images_directory()", "file_type": "code", "source_file": "backend/tests/test_static_files.py", "source_location": "L14"}, {"id": "test_static_files_client", "label": "client()", "file_type": "code", "source_file": "backend/tests/test_static_files.py", "source_location": "L26"}, {"id": "test_static_files_sample_jpeg_image", "label": "sample_jpeg_image()", "file_type": "code", "source_file": "backend/tests/test_static_files.py", "source_location": "L32"}, {"id": "test_static_files_sample_png_image", "label": "sample_png_image()", "file_type": "code", "source_file": "backend/tests/test_static_files.py", "source_location": "L49"}, {"id": "test_static_files_teststaticfileserving", "label": "TestStaticFileServing", "file_type": "code", "source_file": "backend/tests/test_static_files.py", "source_location": "L71"}, {"id": "test_static_files_teststaticfileserving_test_images_directory_exists_on_startup", "label": ".test_images_directory_exists_on_startup()", "file_type": "code", "source_file": "backend/tests/test_static_files.py", "source_location": "L74"}, {"id": "test_static_files_teststaticfileserving_test_serve_uploaded_jpeg_image", "label": ".test_serve_uploaded_jpeg_image()", "file_type": "code", "source_file": "backend/tests/test_static_files.py", "source_location": "L79"}, {"id": "test_static_files_teststaticfileserving_test_serve_uploaded_png_image", "label": ".test_serve_uploaded_png_image()", "file_type": "code", "source_file": "backend/tests/test_static_files.py", "source_location": "L97"}, {"id": "test_static_files_teststaticfileserving_test_serve_thumbnail_variant", "label": ".test_serve_thumbnail_variant()", "file_type": "code", "source_file": "backend/tests/test_static_files.py", "source_location": "L113"}, {"id": "test_static_files_teststaticfileserving_test_404_for_nonexistent_image", "label": ".test_404_for_nonexistent_image()", "file_type": "code", "source_file": "backend/tests/test_static_files.py", "source_location": "L127"}, {"id": "test_static_files_teststaticfileserving_test_directory_traversal_protection", "label": ".test_directory_traversal_protection()", "file_type": "code", "source_file": "backend/tests/test_static_files.py", "source_location": "L133"}, {"id": "test_static_files_teststaticfileserving_test_serve_multiple_categories", "label": ".test_serve_multiple_categories()", "file_type": "code", "source_file": "backend/tests/test_static_files.py", "source_location": "L148"}, {"id": "test_static_files_teststaticfileserving_test_content_matches_uploaded_file", "label": ".test_content_matches_uploaded_file()", "file_type": "code", "source_file": "backend/tests/test_static_files.py", "source_location": "L175"}, {"id": "test_static_files_teststaticfileserving_test_mime_type_auto_detection_jpeg", "label": ".test_mime_type_auto_detection_jpeg()", "file_type": "code", "source_file": "backend/tests/test_static_files.py", "source_location": "L191"}, {"id": "test_static_files_teststaticfileserving_test_mime_type_auto_detection_all_saved_as_jpeg", "label": ".test_mime_type_auto_detection_all_saved_as_jpeg()", "file_type": "code", "source_file": "backend/tests/test_static_files.py", "source_location": "L204"}, {"id": "test_static_files_teststaticfileserving_test_original_and_thumbnail_variants_accessible", "label": ".test_original_and_thumbnail_variants_accessible()", "file_type": "code", "source_file": "backend/tests/test_static_files.py", "source_location": "L219"}, {"id": "test_static_files_teststaticfileserving_test_images_served_with_correct_path_structure", "label": ".test_images_served_with_correct_path_structure()", "file_type": "code", "source_file": "backend/tests/test_static_files.py", "source_location": "L242"}, {"id": "test_static_files_rationale_1", "label": "Tests for static file serving of uploaded images.", "file_type": "rationale", "source_file": "backend/tests/test_static_files.py", "source_location": "L1"}, {"id": "test_static_files_rationale_15", "label": "Create and clean up images directory for each test.", "file_type": "rationale", "source_file": "backend/tests/test_static_files.py", "source_location": "L15"}, {"id": "test_static_files_rationale_33", "label": "Create a minimal valid JPEG image for testing.", "file_type": "rationale", "source_file": "backend/tests/test_static_files.py", "source_location": "L33"}, {"id": "test_static_files_rationale_50", "label": "Create a minimal valid PNG image for testing.", "file_type": "rationale", "source_file": "backend/tests/test_static_files.py", "source_location": "L50"}, {"id": "test_static_files_rationale_72", "label": "Test static file serving for /images/ directory.", "file_type": "rationale", "source_file": "backend/tests/test_static_files.py", "source_location": "L72"}, {"id": "test_static_files_rationale_75", "label": "Verify /images directory is created on startup.", "file_type": "rationale", "source_file": "backend/tests/test_static_files.py", "source_location": "L75"}, {"id": "test_static_files_rationale_80", "label": "Test serving a JPEG image uploaded to /images/.", "file_type": "rationale", "source_file": "backend/tests/test_static_files.py", "source_location": "L80"}, {"id": "test_static_files_rationale_98", "label": "Test serving a PNG image uploaded to /images/.", "file_type": "rationale", "source_file": "backend/tests/test_static_files.py", "source_location": "L98"}, {"id": "test_static_files_rationale_114", "label": "Test serving thumbnail variant of an image.", "file_type": "rationale", "source_file": "backend/tests/test_static_files.py", "source_location": "L114"}, {"id": "test_static_files_rationale_128", "label": "Test 404 response for non-existent image.", "file_type": "rationale", "source_file": "backend/tests/test_static_files.py", "source_location": "L128"}, {"id": "test_static_files_rationale_134", "label": "Test that directory traversal attempts are blocked.", "file_type": "rationale", "source_file": "backend/tests/test_static_files.py", "source_location": "L134"}, {"id": "test_static_files_rationale_149", "label": "Test serving images from multiple categories.", "file_type": "rationale", "source_file": "backend/tests/test_static_files.py", "source_location": "L149"}, {"id": "test_static_files_rationale_176", "label": "Verify that served content exactly matches uploaded file.", "file_type": "rationale", "source_file": "backend/tests/test_static_files.py", "source_location": "L176"}, {"id": "test_static_files_rationale_192", "label": "Test MIME type is auto-detected correctly for JPEG.", "file_type": "rationale", "source_file": "backend/tests/test_static_files.py", "source_location": "L192"}, {"id": "test_static_files_rationale_205", "label": "Test MIME type detection for images saved as JPEG (all images saved as .jpg).", "file_type": "rationale", "source_file": "backend/tests/test_static_files.py", "source_location": "L205"}, {"id": "test_static_files_rationale_220", "label": "Test both original and thumbnail variants are accessible.", "file_type": "rationale", "source_file": "backend/tests/test_static_files.py", "source_location": "L220"}, {"id": "test_static_files_rationale_243", "label": "Test images are served at /images/{category}/{filename} path.", "file_type": "rationale", "source_file": "backend/tests/test_static_files.py", "source_location": "L243"}], "edges": [{"source": "backend_tests_test_static_files_py", "target": "os", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L2", "weight": 1.0}, {"source": "backend_tests_test_static_files_py", "target": "tempfile", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L3", "weight": 1.0}, {"source": "backend_tests_test_static_files_py", "target": "pathlib", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L4", "weight": 1.0}, {"source": "backend_tests_test_static_files_py", "target": "pytest", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L6", "weight": 1.0}, {"source": "backend_tests_test_static_files_py", "target": "fastapi_testclient", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L7", "weight": 1.0}, {"source": "backend_tests_test_static_files_py", "target": "backend_main", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L9", "weight": 1.0}, {"source": "backend_tests_test_static_files_py", "target": "backend_services_image_storage", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L10", "weight": 1.0}, {"source": "backend_tests_test_static_files_py", "target": "test_static_files_setup_images_directory", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L14", "weight": 1.0}, {"source": "backend_tests_test_static_files_py", "target": "test_static_files_client", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L26", "weight": 1.0}, {"source": "backend_tests_test_static_files_py", "target": "test_static_files_sample_jpeg_image", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L32", "weight": 1.0}, {"source": "backend_tests_test_static_files_py", "target": "test_static_files_sample_png_image", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L49", "weight": 1.0}, {"source": "backend_tests_test_static_files_py", "target": "test_static_files_teststaticfileserving", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L71", "weight": 1.0}, {"source": "test_static_files_teststaticfileserving", "target": "test_static_files_teststaticfileserving_test_images_directory_exists_on_startup", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L74", "weight": 1.0}, {"source": "test_static_files_teststaticfileserving", "target": "test_static_files_teststaticfileserving_test_serve_uploaded_jpeg_image", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L79", "weight": 1.0}, {"source": "test_static_files_teststaticfileserving", "target": "test_static_files_teststaticfileserving_test_serve_uploaded_png_image", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L97", "weight": 1.0}, {"source": "test_static_files_teststaticfileserving", "target": "test_static_files_teststaticfileserving_test_serve_thumbnail_variant", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L113", "weight": 1.0}, {"source": "test_static_files_teststaticfileserving", "target": "test_static_files_teststaticfileserving_test_404_for_nonexistent_image", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L127", "weight": 1.0}, {"source": "test_static_files_teststaticfileserving", "target": "test_static_files_teststaticfileserving_test_directory_traversal_protection", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L133", "weight": 1.0}, {"source": "test_static_files_teststaticfileserving", "target": "test_static_files_teststaticfileserving_test_serve_multiple_categories", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L148", "weight": 1.0}, {"source": "test_static_files_teststaticfileserving", "target": "test_static_files_teststaticfileserving_test_content_matches_uploaded_file", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L175", "weight": 1.0}, {"source": "test_static_files_teststaticfileserving", "target": "test_static_files_teststaticfileserving_test_mime_type_auto_detection_jpeg", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L191", "weight": 1.0}, {"source": "test_static_files_teststaticfileserving", "target": "test_static_files_teststaticfileserving_test_mime_type_auto_detection_all_saved_as_jpeg", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L204", "weight": 1.0}, {"source": "test_static_files_teststaticfileserving", "target": "test_static_files_teststaticfileserving_test_original_and_thumbnail_variants_accessible", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L219", "weight": 1.0}, {"source": "test_static_files_teststaticfileserving", "target": "test_static_files_teststaticfileserving_test_images_served_with_correct_path_structure", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L242", "weight": 1.0}, {"source": "test_static_files_rationale_1", "target": "backend_tests_test_static_files_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L1", "weight": 1.0}, {"source": "test_static_files_rationale_15", "target": "test_static_files_setup_images_directory", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L15", "weight": 1.0}, {"source": "test_static_files_rationale_33", "target": "test_static_files_sample_jpeg_image", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L33", "weight": 1.0}, {"source": "test_static_files_rationale_50", "target": "test_static_files_sample_png_image", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L50", "weight": 1.0}, {"source": "test_static_files_rationale_72", "target": "test_static_files_teststaticfileserving", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L72", "weight": 1.0}, {"source": "test_static_files_rationale_75", "target": "test_static_files_teststaticfileserving_test_images_directory_exists_on_startup", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L75", "weight": 1.0}, {"source": "test_static_files_rationale_80", "target": "test_static_files_teststaticfileserving_test_serve_uploaded_jpeg_image", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L80", "weight": 1.0}, {"source": "test_static_files_rationale_98", "target": "test_static_files_teststaticfileserving_test_serve_uploaded_png_image", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L98", "weight": 1.0}, {"source": "test_static_files_rationale_114", "target": "test_static_files_teststaticfileserving_test_serve_thumbnail_variant", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L114", "weight": 1.0}, {"source": "test_static_files_rationale_128", "target": "test_static_files_teststaticfileserving_test_404_for_nonexistent_image", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L128", "weight": 1.0}, {"source": "test_static_files_rationale_134", "target": "test_static_files_teststaticfileserving_test_directory_traversal_protection", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L134", "weight": 1.0}, {"source": "test_static_files_rationale_149", "target": "test_static_files_teststaticfileserving_test_serve_multiple_categories", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L149", "weight": 1.0}, {"source": "test_static_files_rationale_176", "target": "test_static_files_teststaticfileserving_test_content_matches_uploaded_file", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L176", "weight": 1.0}, {"source": "test_static_files_rationale_192", "target": "test_static_files_teststaticfileserving_test_mime_type_auto_detection_jpeg", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L192", "weight": 1.0}, {"source": "test_static_files_rationale_205", "target": "test_static_files_teststaticfileserving_test_mime_type_auto_detection_all_saved_as_jpeg", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L205", "weight": 1.0}, {"source": "test_static_files_rationale_220", "target": "test_static_files_teststaticfileserving_test_original_and_thumbnail_variants_accessible", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L220", "weight": 1.0}, {"source": "test_static_files_rationale_243", "target": "test_static_files_teststaticfileserving_test_images_served_with_correct_path_structure", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_static_files.py", "source_location": "L243", "weight": 1.0}], "raw_calls": [{"caller_nid": "test_static_files_setup_images_directory", "callee": "mkdir", "source_file": "backend/tests/test_static_files.py", "source_location": "L17"}, {"caller_nid": "test_static_files_setup_images_directory", "callee": "exists", "source_file": "backend/tests/test_static_files.py", "source_location": "L21"}, {"caller_nid": "test_static_files_setup_images_directory", "callee": "rmtree", "source_file": "backend/tests/test_static_files.py", "source_location": "L22"}, {"caller_nid": "test_static_files_client", "callee": "TestClient", "source_file": "backend/tests/test_static_files.py", "source_location": "L28"}, {"caller_nid": "test_static_files_sample_png_image", "callee": "new", "source_file": "backend/tests/test_static_files.py", "source_location": "L55"}, {"caller_nid": "test_static_files_sample_png_image", "callee": "BytesIO", "source_file": "backend/tests/test_static_files.py", "source_location": "L56"}, {"caller_nid": "test_static_files_sample_png_image", "callee": "save", "source_file": "backend/tests/test_static_files.py", "source_location": "L57"}, {"caller_nid": "test_static_files_sample_png_image", "callee": "getvalue", "source_file": "backend/tests/test_static_files.py", "source_location": "L58"}, {"caller_nid": "test_static_files_teststaticfileserving_test_images_directory_exists_on_startup", "callee": "exists", "source_file": "backend/tests/test_static_files.py", "source_location": "L76"}, {"caller_nid": "test_static_files_teststaticfileserving_test_images_directory_exists_on_startup", "callee": "is_dir", "source_file": "backend/tests/test_static_files.py", "source_location": "L77"}, {"caller_nid": "test_static_files_teststaticfileserving_test_serve_uploaded_jpeg_image", "callee": "save_image", "source_file": "backend/tests/test_static_files.py", "source_location": "L82"}, {"caller_nid": "test_static_files_teststaticfileserving_test_serve_uploaded_jpeg_image", "callee": "get", "source_file": "backend/tests/test_static_files.py", "source_location": "L90"}, {"caller_nid": "test_static_files_teststaticfileserving_test_serve_uploaded_png_image", "callee": "save_image", "source_file": "backend/tests/test_static_files.py", "source_location": "L99"}, {"caller_nid": "test_static_files_teststaticfileserving_test_serve_uploaded_png_image", "callee": "get", "source_file": "backend/tests/test_static_files.py", "source_location": "L106"}, {"caller_nid": "test_static_files_teststaticfileserving_test_serve_thumbnail_variant", "callee": "save_image", "source_file": "backend/tests/test_static_files.py", "source_location": "L115"}, {"caller_nid": "test_static_files_teststaticfileserving_test_serve_thumbnail_variant", "callee": "get", "source_file": "backend/tests/test_static_files.py", "source_location": "L122"}, {"caller_nid": "test_static_files_teststaticfileserving_test_404_for_nonexistent_image", "callee": "get", "source_file": "backend/tests/test_static_files.py", "source_location": "L129"}, {"caller_nid": "test_static_files_teststaticfileserving_test_directory_traversal_protection", "callee": "get", "source_file": "backend/tests/test_static_files.py", "source_location": "L143"}, {"caller_nid": "test_static_files_teststaticfileserving_test_serve_multiple_categories", "callee": "save_image", "source_file": "backend/tests/test_static_files.py", "source_location": "L151"}, {"caller_nid": "test_static_files_teststaticfileserving_test_serve_multiple_categories", "callee": "save_image", "source_file": "backend/tests/test_static_files.py", "source_location": "L158"}, {"caller_nid": "test_static_files_teststaticfileserving_test_serve_multiple_categories", "callee": "get", "source_file": "backend/tests/test_static_files.py", "source_location": "L166"}, {"caller_nid": "test_static_files_teststaticfileserving_test_serve_multiple_categories", "callee": "get", "source_file": "backend/tests/test_static_files.py", "source_location": "L167"}, {"caller_nid": "test_static_files_teststaticfileserving_test_content_matches_uploaded_file", "callee": "save_image", "source_file": "backend/tests/test_static_files.py", "source_location": "L177"}, {"caller_nid": "test_static_files_teststaticfileserving_test_content_matches_uploaded_file", "callee": "get", "source_file": "backend/tests/test_static_files.py", "source_location": "L184"}, {"caller_nid": "test_static_files_teststaticfileserving_test_content_matches_uploaded_file", "callee": "len", "source_file": "backend/tests/test_static_files.py", "source_location": "L187"}, {"caller_nid": "test_static_files_teststaticfileserving_test_content_matches_uploaded_file", "callee": "len", "source_file": "backend/tests/test_static_files.py", "source_location": "L187"}, {"caller_nid": "test_static_files_teststaticfileserving_test_mime_type_auto_detection_jpeg", "callee": "save_image", "source_file": "backend/tests/test_static_files.py", "source_location": "L193"}, {"caller_nid": "test_static_files_teststaticfileserving_test_mime_type_auto_detection_jpeg", "callee": "get", "source_file": "backend/tests/test_static_files.py", "source_location": "L200"}, {"caller_nid": "test_static_files_teststaticfileserving_test_mime_type_auto_detection_all_saved_as_jpeg", "callee": "save_image", "source_file": "backend/tests/test_static_files.py", "source_location": "L207"}, {"caller_nid": "test_static_files_teststaticfileserving_test_mime_type_auto_detection_all_saved_as_jpeg", "callee": "get", "source_file": "backend/tests/test_static_files.py", "source_location": "L214"}, {"caller_nid": "test_static_files_teststaticfileserving_test_original_and_thumbnail_variants_accessible", "callee": "save_image", "source_file": "backend/tests/test_static_files.py", "source_location": "L221"}, {"caller_nid": "test_static_files_teststaticfileserving_test_original_and_thumbnail_variants_accessible", "callee": "save_image", "source_file": "backend/tests/test_static_files.py", "source_location": "L228"}, {"caller_nid": "test_static_files_teststaticfileserving_test_original_and_thumbnail_variants_accessible", "callee": "get", "source_file": "backend/tests/test_static_files.py", "source_location": "L236"}, {"caller_nid": "test_static_files_teststaticfileserving_test_original_and_thumbnail_variants_accessible", "callee": "get", "source_file": "backend/tests/test_static_files.py", "source_location": "L237"}, {"caller_nid": "test_static_files_teststaticfileserving_test_images_served_with_correct_path_structure", "callee": "save_image", "source_file": "backend/tests/test_static_files.py", "source_location": "L244"}, {"caller_nid": "test_static_files_teststaticfileserving_test_images_served_with_correct_path_structure", "callee": "startswith", "source_file": "backend/tests/test_static_files.py", "source_location": "L252"}, {"caller_nid": "test_static_files_teststaticfileserving_test_images_served_with_correct_path_structure", "callee": "get", "source_file": "backend/tests/test_static_files.py", "source_location": "L255"}]}