fe10df5d4e9558764cb2ef24c5fb80711b3e0b0fd075b2991eb8a373baeeb3d4.json 41 KB

1
  1. {"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_single_contract_rules_py", "label": "test_pl_plan_single_contract_rules.py", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L1"}, {"id": "tests_test_pl_plan_single_contract_rules_test_assert_at_most_one_contract_allows_zero_or_one", "label": "test_assert_at_most_one_contract_allows_zero_or_one()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L19"}, {"id": "tests_test_pl_plan_single_contract_rules_test_assert_at_most_one_contract_rejects_two", "label": "test_assert_at_most_one_contract_rejects_two()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L25"}, {"id": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_union_across_two_contracts", "label": "test_assert_load_products_union_across_two_contracts()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L36"}, {"id": "tests_test_pl_plan_single_contract_rules_fakequery", "label": "_FakeQuery", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L58"}, {"id": "tests_test_pl_plan_single_contract_rules_fakequery_init", "label": ".__init__()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L59"}, {"id": "tests_test_pl_plan_single_contract_rules_fakequery_filter", "label": ".filter()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L62"}, {"id": "tests_test_pl_plan_single_contract_rules_fakequery_all", "label": ".all()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L65"}, {"id": "tests_test_pl_plan_single_contract_rules_fakedb", "label": "_FakeDb", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L69"}, {"id": "tests_test_pl_plan_single_contract_rules_fakedb_init", "label": ".__init__()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L70"}, {"id": "tests_test_pl_plan_single_contract_rules_fakedb_query", "label": ".query()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L73"}, {"id": "tests_test_pl_plan_single_contract_rules_load_with_products", "label": "_load_with_products()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L77"}, {"id": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_in_contract_passes_when_all_match", "label": "test_assert_load_products_in_contract_passes_when_all_match()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L95"}, {"id": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_in_contract_rejects_outside", "label": "test_assert_load_products_in_contract_rejects_outside()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L101"}, {"id": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_skips_when_no_contract", "label": "test_assert_load_products_skips_when_no_contract()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L110"}, {"id": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_skips_internal_customer", "label": "test_assert_load_products_skips_internal_customer()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L129"}, {"id": "tests_test_pl_plan_single_contract_rules_test_assert_plan_products_outside_contract_raises", "label": "test_assert_plan_products_outside_contract_raises()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L152"}, {"id": "tests_test_pl_plan_single_contract_rules_delivery_with_products", "label": "_delivery_with_products()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L167"}, {"id": "tests_test_pl_plan_single_contract_rules_test_assert_delivery_products_in_contract_passes_when_all_match", "label": "test_assert_delivery_products_in_contract_passes_when_all_match()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L186"}, {"id": "tests_test_pl_plan_single_contract_rules_test_assert_delivery_products_in_contract_rejects_outside", "label": "test_assert_delivery_products_in_contract_rejects_outside()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L192"}, {"id": "tests_test_pl_plan_single_contract_rules_test_assert_delivery_products_skips_when_no_contract", "label": "test_assert_delivery_products_skips_when_no_contract()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L202"}, {"id": "tests_test_pl_plan_single_contract_rules_test_assert_delivery_products_skips_internal_customer", "label": "test_assert_delivery_products_skips_internal_customer()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L222"}, {"id": "tests_test_pl_plan_single_contract_rules_test_assert_stop_contract_required_rejects_external_without_contract", "label": "test_assert_stop_contract_required_rejects_external_without_contract()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L245"}, {"id": "tests_test_pl_plan_single_contract_rules_test_assert_stop_contract_required_allows_external_with_contract", "label": "test_assert_stop_contract_required_allows_external_with_contract()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L252"}, {"id": "tests_test_pl_plan_single_contract_rules_test_assert_stop_contract_required_skips_internal_customer", "label": "test_assert_stop_contract_required_skips_internal_customer()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L257"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_single_contract_rules_py", "target": "pytest", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L1", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_single_contract_rules_py", "target": "fastapi", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L2", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_single_contract_rules_py", "target": "types", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L3", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_single_contract_rules_py", "target": "app_schemas_pl_plan", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L5", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_single_contract_rules_py", "target": "app_services_pl_plan_stop_service", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L11", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_single_contract_rules_py", "target": "tests_test_pl_plan_single_contract_rules_test_assert_at_most_one_contract_allows_zero_or_one", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L19", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_single_contract_rules_py", "target": "tests_test_pl_plan_single_contract_rules_test_assert_at_most_one_contract_rejects_two", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L25", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_single_contract_rules_py", "target": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_union_across_two_contracts", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L36", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_single_contract_rules_py", "target": "tests_test_pl_plan_single_contract_rules_fakequery", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L58", "weight": 1.0}, {"source": "tests_test_pl_plan_single_contract_rules_fakequery", "target": "tests_test_pl_plan_single_contract_rules_fakequery_init", "relation": "method", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L59", "weight": 1.0}, {"source": "tests_test_pl_plan_single_contract_rules_fakequery", "target": "tests_test_pl_plan_single_contract_rules_fakequery_filter", "relation": "method", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L62", "weight": 1.0}, {"source": "tests_test_pl_plan_single_contract_rules_fakequery", "target": "tests_test_pl_plan_single_contract_rules_fakequery_all", "relation": "method", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L65", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_single_contract_rules_py", "target": "tests_test_pl_plan_single_contract_rules_fakedb", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L69", "weight": 1.0}, {"source": "tests_test_pl_plan_single_contract_rules_fakedb", "target": "tests_test_pl_plan_single_contract_rules_fakedb_init", "relation": "method", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L70", "weight": 1.0}, {"source": "tests_test_pl_plan_single_contract_rules_fakedb", "target": "tests_test_pl_plan_single_contract_rules_fakedb_query", "relation": "method", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L73", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_single_contract_rules_py", "target": "tests_test_pl_plan_single_contract_rules_load_with_products", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L77", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_single_contract_rules_py", "target": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_in_contract_passes_when_all_match", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L95", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_single_contract_rules_py", "target": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_in_contract_rejects_outside", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L101", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_single_contract_rules_py", "target": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_skips_when_no_contract", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L110", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_single_contract_rules_py", "target": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_skips_internal_customer", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L129", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_single_contract_rules_py", "target": "tests_test_pl_plan_single_contract_rules_test_assert_plan_products_outside_contract_raises", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L152", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_single_contract_rules_py", "target": "tests_test_pl_plan_single_contract_rules_delivery_with_products", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L167", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_single_contract_rules_py", "target": "tests_test_pl_plan_single_contract_rules_test_assert_delivery_products_in_contract_passes_when_all_match", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L186", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_single_contract_rules_py", "target": "tests_test_pl_plan_single_contract_rules_test_assert_delivery_products_in_contract_rejects_outside", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L192", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_single_contract_rules_py", "target": "tests_test_pl_plan_single_contract_rules_test_assert_delivery_products_skips_when_no_contract", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L202", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_single_contract_rules_py", "target": "tests_test_pl_plan_single_contract_rules_test_assert_delivery_products_skips_internal_customer", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L222", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_single_contract_rules_py", "target": "tests_test_pl_plan_single_contract_rules_test_assert_stop_contract_required_rejects_external_without_contract", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L245", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_single_contract_rules_py", "target": "tests_test_pl_plan_single_contract_rules_test_assert_stop_contract_required_allows_external_with_contract", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L252", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_single_contract_rules_py", "target": "tests_test_pl_plan_single_contract_rules_test_assert_stop_contract_required_skips_internal_customer", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L257", "weight": 1.0}, {"source": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_union_across_two_contracts", "target": "tests_test_pl_plan_single_contract_rules_fakedb", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L37", "weight": 1.0}, {"source": "tests_test_pl_plan_single_contract_rules_fakedb_query", "target": "tests_test_pl_plan_single_contract_rules_fakequery", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L74", "weight": 1.0}, {"source": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_in_contract_passes_when_all_match", "target": "tests_test_pl_plan_single_contract_rules_fakedb", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L96", "weight": 1.0}, {"source": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_in_contract_passes_when_all_match", "target": "tests_test_pl_plan_single_contract_rules_load_with_products", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L97", "weight": 1.0}, {"source": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_in_contract_rejects_outside", "target": "tests_test_pl_plan_single_contract_rules_fakedb", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L102", "weight": 1.0}, {"source": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_in_contract_rejects_outside", "target": "tests_test_pl_plan_single_contract_rules_load_with_products", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L103", "weight": 1.0}, {"source": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_skips_when_no_contract", "target": "tests_test_pl_plan_single_contract_rules_fakedb", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L111", "weight": 1.0}, {"source": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_skips_internal_customer", "target": "tests_test_pl_plan_single_contract_rules_fakedb", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L134", "weight": 1.0}, {"source": "tests_test_pl_plan_single_contract_rules_test_assert_plan_products_outside_contract_raises", "target": "tests_test_pl_plan_single_contract_rules_fakedb", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L153", "weight": 1.0}, {"source": "tests_test_pl_plan_single_contract_rules_test_assert_plan_products_outside_contract_raises", "target": "tests_test_pl_plan_single_contract_rules_load_with_products", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L154", "weight": 1.0}, {"source": "tests_test_pl_plan_single_contract_rules_test_assert_delivery_products_in_contract_passes_when_all_match", "target": "tests_test_pl_plan_single_contract_rules_fakedb", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L187", "weight": 1.0}, {"source": "tests_test_pl_plan_single_contract_rules_test_assert_delivery_products_in_contract_passes_when_all_match", "target": "tests_test_pl_plan_single_contract_rules_delivery_with_products", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L188", "weight": 1.0}, {"source": "tests_test_pl_plan_single_contract_rules_test_assert_delivery_products_in_contract_rejects_outside", "target": "tests_test_pl_plan_single_contract_rules_fakedb", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L193", "weight": 1.0}, {"source": "tests_test_pl_plan_single_contract_rules_test_assert_delivery_products_in_contract_rejects_outside", "target": "tests_test_pl_plan_single_contract_rules_delivery_with_products", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L194", "weight": 1.0}, {"source": "tests_test_pl_plan_single_contract_rules_test_assert_delivery_products_skips_when_no_contract", "target": "tests_test_pl_plan_single_contract_rules_fakedb", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L203", "weight": 1.0}, {"source": "tests_test_pl_plan_single_contract_rules_test_assert_delivery_products_skips_internal_customer", "target": "tests_test_pl_plan_single_contract_rules_fakedb", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L226", "weight": 1.0}], "raw_calls": [{"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_at_most_one_contract_allows_zero_or_one", "callee": "assert_at_most_one_contract", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L20"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_at_most_one_contract_allows_zero_or_one", "callee": "PlanContractLink", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L21"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_at_most_one_contract_allows_zero_or_one", "callee": "assert_at_most_one_contract", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L22"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_at_most_one_contract_rejects_two", "callee": "PlanContractLink", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L27"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_at_most_one_contract_rejects_two", "callee": "PlanContractLink", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L28"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_at_most_one_contract_rejects_two", "callee": "raises", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L30"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_at_most_one_contract_rejects_two", "callee": "assert_at_most_one_contract", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L31"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_at_most_one_contract_rejects_two", "callee": "str", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L33"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_union_across_two_contracts", "callee": "PlanLoadBody", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L38"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_union_across_two_contracts", "callee": "PlanContractLink", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L42"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_union_across_two_contracts", "callee": "PlanContractLink", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L43"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_union_across_two_contracts", "callee": "PlanStopProductBody", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L46"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_union_across_two_contracts", "callee": "assert_load_products_in_selected_contract", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L55"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_fakedb_init", "callee": "SimpleNamespace", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L71"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_load_with_products", "callee": "PlanLoadBody", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L78"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_load_with_products", "callee": "PlanContractLink", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L81"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_load_with_products", "callee": "PlanStopProductBody", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L83"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_in_contract_passes_when_all_match", "callee": "assert_load_products_in_selected_contract", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L98"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_in_contract_rejects_outside", "callee": "raises", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L104"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_in_contract_rejects_outside", "callee": "assert_load_products_in_selected_contract", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L105"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_in_contract_rejects_outside", "callee": "str", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L107"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_skips_when_no_contract", "callee": "PlanLoadBody", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L112"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_skips_when_no_contract", "callee": "PlanStopProductBody", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L117"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_skips_when_no_contract", "callee": "assert_load_products_in_selected_contract", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L126"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_skips_internal_customer", "callee": "next", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L132"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_skips_internal_customer", "callee": "iter", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L132"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_skips_internal_customer", "callee": "PlanLoadBody", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L135"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_skips_internal_customer", "callee": "PlanContractLink", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L138"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_skips_internal_customer", "callee": "PlanStopProductBody", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L140"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_load_products_skips_internal_customer", "callee": "assert_load_products_in_selected_contract", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L149"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_plan_products_outside_contract_raises", "callee": "SimpleNamespace", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L156"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_plan_products_outside_contract_raises", "callee": "raises", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L158"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_plan_products_outside_contract_raises", "callee": "assert_load_products_in_selected_contract", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L159"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_plan_products_outside_contract_raises", "callee": "str", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L163"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_plan_products_outside_contract_raises", "callee": "str", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L164"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_delivery_with_products", "callee": "PlanDeliveryBody", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L168"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_delivery_with_products", "callee": "PlanContractLink", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L172"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_delivery_with_products", "callee": "PlanStopProductBody", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L174"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_delivery_products_in_contract_passes_when_all_match", "callee": "assert_delivery_products_in_selected_contract", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L189"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_delivery_products_in_contract_rejects_outside", "callee": "raises", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L195"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_delivery_products_in_contract_rejects_outside", "callee": "assert_delivery_products_in_selected_contract", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L196"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_delivery_products_in_contract_rejects_outside", "callee": "str", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L198"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_delivery_products_in_contract_rejects_outside", "callee": "str", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L199"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_delivery_products_skips_when_no_contract", "callee": "PlanDeliveryBody", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L204"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_delivery_products_skips_when_no_contract", "callee": "PlanStopProductBody", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L210"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_delivery_products_skips_when_no_contract", "callee": "assert_delivery_products_in_selected_contract", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L219"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_delivery_products_skips_internal_customer", "callee": "next", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L225"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_delivery_products_skips_internal_customer", "callee": "iter", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L225"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_delivery_products_skips_internal_customer", "callee": "PlanDeliveryBody", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L227"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_delivery_products_skips_internal_customer", "callee": "PlanContractLink", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L231"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_delivery_products_skips_internal_customer", "callee": "PlanStopProductBody", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L233"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_delivery_products_skips_internal_customer", "callee": "assert_delivery_products_in_selected_contract", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L242"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_stop_contract_required_rejects_external_without_contract", "callee": "raises", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L246"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_stop_contract_required_rejects_external_without_contract", "callee": "assert_stop_contract_required", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L247"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_stop_contract_required_allows_external_with_contract", "callee": "PlanContractLink", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L253"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_stop_contract_required_allows_external_with_contract", "callee": "assert_stop_contract_required", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L254"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_stop_contract_required_skips_internal_customer", "callee": "next", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L260"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_stop_contract_required_skips_internal_customer", "callee": "iter", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L260"}, {"caller_nid": "tests_test_pl_plan_single_contract_rules_test_assert_stop_contract_required_skips_internal_customer", "callee": "assert_stop_contract_required", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_single_contract_rules.py", "source_location": "L261"}]}