| 1 | [ |
| 2 | [ |
| 3 | { |
| 4 | "func_name": "search_class", |
| 5 | "arguments": { |
| 6 | "class_name": "Product" |
| 7 | }, |
| 8 | "call_ok": true |
| 9 | }, |
| 10 | { |
| 11 | "func_name": "search_class", |
| 12 | "arguments": { |
| 13 | "class_name": "Order" |
| 14 | }, |
| 15 | "call_ok": true |
| 16 | }, |
| 17 | { |
| 18 | "func_name": "search_method_in_class", |
| 19 | "arguments": { |
| 20 | "method_name": "save", |
| 21 | "class_name": "Product" |
| 22 | }, |
| 23 | "call_ok": false |
| 24 | }, |
| 25 | { |
| 26 | "func_name": "search_method_in_class", |
| 27 | "arguments": { |
| 28 | "method_name": "save", |
| 29 | "class_name": "Order" |
| 30 | }, |
| 31 | "call_ok": false |
| 32 | }, |
| 33 | { |
| 34 | "func_name": "search_code", |
| 35 | "arguments": { |
| 36 | "code_str": "ForeignKey(Product, on_delete=models.CASCADE)" |
| 37 | }, |
| 38 | "call_ok": false |
| 39 | } |
| 40 | ], |
| 41 | [ |
| 42 | { |
| 43 | "func_name": "search_code_in_file", |
| 44 | "arguments": { |
| 45 | "code_str": "class Product(models.Model):", |
| 46 | "file_name": "tests/queries/models.py" |
| 47 | }, |
| 48 | "call_ok": false |
| 49 | }, |
| 50 | { |
| 51 | "func_name": "search_code_in_file", |
| 52 | "arguments": { |
| 53 | "code_str": "class Order(models.Model):", |
| 54 | "file_name": "tests/queries/models.py" |
| 55 | }, |
| 56 | "call_ok": true |
| 57 | }, |
| 58 | { |
| 59 | "func_name": "search_code", |
| 60 | "arguments": { |
| 61 | "code_str": "ForeignKey(Product, on_delete=models.CASCADE)" |
| 62 | }, |
| 63 | "call_ok": false |
| 64 | } |
| 65 | ], |
| 66 | [ |
| 67 | { |
| 68 | "func_name": "search_class", |
| 69 | "arguments": { |
| 70 | "class_name": "Product" |
| 71 | }, |
| 72 | "call_ok": true |
| 73 | }, |
| 74 | { |
| 75 | "func_name": "search_code", |
| 76 | "arguments": { |
| 77 | "code_str": "models.ForeignKey(Product" |
| 78 | }, |
| 79 | "call_ok": true |
| 80 | }, |
| 81 | { |
| 82 | "func_name": "search_code", |
| 83 | "arguments": { |
| 84 | "code_str": "primary_key=True, max_length=50" |
| 85 | }, |
| 86 | "call_ok": true |
| 87 | } |
| 88 | ], |
| 89 | [], |
| 90 | [], |
| 91 | [], |
| 92 | [], |
| 93 | [], |
| 94 | [], |
| 95 | [], |
| 96 | [], |
| 97 | [ |
| 98 | { |
| 99 | "func_name": "write_patch", |
| 100 | "arguments": {}, |
| 101 | "call_ok": true |
| 102 | } |
| 103 | ] |
| 104 | ] |