(self)
| 5332 | assert "foobar" in t.dialect_options["participating2"] |
| 5333 | |
| 5334 | def test_update(self): |
| 5335 | with self._fixture(): |
| 5336 | idx = Index("a", "b", "c", participating_x=20) |
| 5337 | eq_(idx.dialect_kwargs, {"participating_x": 20}) |
| 5338 | idx._validate_dialect_kwargs( |
| 5339 | {"participating_x": 25, "participating_z_one": "default"} |
| 5340 | ) |
| 5341 | eq_( |
| 5342 | idx.dialect_options, |
| 5343 | {"participating": {"x": 25, "y": False, "z_one": "default"}}, |
| 5344 | ) |
| 5345 | eq_( |
| 5346 | idx.dialect_kwargs, |
| 5347 | {"participating_x": 25, "participating_z_one": "default"}, |
| 5348 | ) |
| 5349 | |
| 5350 | idx._validate_dialect_kwargs( |
| 5351 | {"participating_x": 25, "participating_z_one": "default"} |
| 5352 | ) |
| 5353 | |
| 5354 | eq_( |
| 5355 | idx.dialect_options, |
| 5356 | {"participating": {"x": 25, "y": False, "z_one": "default"}}, |
| 5357 | ) |
| 5358 | eq_( |
| 5359 | idx.dialect_kwargs, |
| 5360 | {"participating_x": 25, "participating_z_one": "default"}, |
| 5361 | ) |
| 5362 | |
| 5363 | idx._validate_dialect_kwargs( |
| 5364 | {"participating_y": True, "participating2_y": "p2y"} |
| 5365 | ) |
| 5366 | eq_( |
| 5367 | idx.dialect_options, |
| 5368 | { |
| 5369 | "participating": {"x": 25, "y": True, "z_one": "default"}, |
| 5370 | "participating2": {"y": "p2y", "pp": "default", "x": 9}, |
| 5371 | }, |
| 5372 | ) |
| 5373 | eq_( |
| 5374 | idx.dialect_kwargs, |
| 5375 | { |
| 5376 | "participating_x": 25, |
| 5377 | "participating_y": True, |
| 5378 | "participating2_y": "p2y", |
| 5379 | "participating_z_one": "default", |
| 5380 | }, |
| 5381 | ) |
| 5382 | |
| 5383 | def test_key_error_kwargs_no_dialect(self): |
| 5384 | with self._fixture(): |
nothing calls this directly
no test coverage detected