| 51 | |
| 52 | |
| 53 | def test_locals(): |
| 54 | foo = (1, 2, 3) |
| 55 | movies = ["Deadpool", "Rise of the Skywalker"] |
| 56 | console = Console() |
| 57 | |
| 58 | console.log( |
| 59 | "[b]JSON[/b] RPC [i]batch[/i]", |
| 60 | [ |
| 61 | {"jsonrpc": "2.0", "method": "sum", "params": [1, 2, 4], "id": "1"}, |
| 62 | {"jsonrpc": "2.0", "method": "notify_hello", "params": [7]}, |
| 63 | {"jsonrpc": "2.0", "method": "subtract", "params": [42, 23], "id": "2"}, |
| 64 | {"foo": "boo"}, |
| 65 | { |
| 66 | "jsonrpc": "2.0", |
| 67 | "method": "foo.get", |
| 68 | "params": {"name": "myself", "enable": False, "grommits": None}, |
| 69 | "id": "5", |
| 70 | }, |
| 71 | {"jsonrpc": "2.0", "method": "get_data", "id": "9"}, |
| 72 | ], |
| 73 | log_locals=True, |
| 74 | ) |
| 75 | |
| 76 | |
| 77 | test_locals() |