()
| 238 | |
| 239 | |
| 240 | def test_freeze_instance(): |
| 241 | t = pw.debug.table_from_markdown( |
| 242 | """ |
| 243 | a | t | __time__ |
| 244 | 1 | 2 | 2 |
| 245 | 1 | 3 | 2 |
| 246 | 1 | 5 | 6 |
| 247 | 1 | 15 | 8 |
| 248 | 1 | 7 | 10 |
| 249 | 2 | 4 | 2 |
| 250 | 2 | 8 | 4 |
| 251 | 2 | 5 | 8 |
| 252 | 3 | 1 | 6 |
| 253 | """ |
| 254 | ) |
| 255 | |
| 256 | res = t._freeze( |
| 257 | pw.this.t + 2, |
| 258 | pw.this.t, |
| 259 | instance_column=pw.this.a, |
| 260 | ) |
| 261 | expected = pw.debug.table_from_markdown( |
| 262 | """ |
| 263 | a | t | __time__ |
| 264 | 1 | 2 | 2 |
| 265 | 1 | 3 | 2 |
| 266 | 1 | 5 | 6 |
| 267 | 1 | 15 | 8 |
| 268 | 2 | 4 | 2 |
| 269 | 2 | 8 | 4 |
| 270 | 3 | 1 | 6 |
| 271 | """ |
| 272 | ) |
| 273 | assert_stream_equality_wo_index(res, expected) |
| 274 | |
| 275 | |
| 276 | @pytest.mark.parametrize("public", [True, False]) |
nothing calls this directly
no test coverage detected