Commit 9b5c68f
committed
refactor: add Store.to_dict() and use it in connection + tests
Address review feedback:
- Add to_dict() method on Store for WebSocket request serialization
- Use store.to_dict() in Connection.__execute_sql instead of inline dict
- Replace duplicated _serialize_store() helper in tests with to_dict()
- Remove test_options_dict_is_mutable to avoid enshrining mutability1 parent a7be067 commit 9b5c68f
File tree
3 files changed
+24
-31
lines changed- tests
- wherobots/db
3 files changed
+24
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | 38 | | |
45 | 39 | | |
46 | 40 | | |
| |||
69 | 63 | | |
70 | 64 | | |
71 | 65 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 66 | + | |
84 | 67 | | |
85 | 68 | | |
86 | 69 | | |
87 | | - | |
| 70 | + | |
88 | 71 | | |
89 | 72 | | |
90 | 73 | | |
| |||
97 | 80 | | |
98 | 81 | | |
99 | 82 | | |
100 | | - | |
| 83 | + | |
101 | 84 | | |
102 | 85 | | |
103 | 86 | | |
| |||
107 | 90 | | |
108 | 91 | | |
109 | 92 | | |
110 | | - | |
| 93 | + | |
111 | 94 | | |
112 | 95 | | |
113 | 96 | | |
114 | 97 | | |
115 | 98 | | |
116 | 99 | | |
117 | 100 | | |
118 | | - | |
| 101 | + | |
119 | 102 | | |
120 | 103 | | |
121 | 104 | | |
| |||
131 | 114 | | |
132 | 115 | | |
133 | 116 | | |
134 | | - | |
| 117 | + | |
135 | 118 | | |
136 | 119 | | |
137 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
| 282 | + | |
290 | 283 | | |
291 | 284 | | |
292 | 285 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
79 | 96 | | |
80 | 97 | | |
81 | 98 | | |
| |||
0 commit comments