(self)
| 214 | assert ctx.get("nonexistent", 42) == 42 |
| 215 | |
| 216 | def test_set_known_attribute(self): |
| 217 | ctx = ApplicationContext.create() |
| 218 | ctx.set("provider", "anthropic") |
| 219 | assert ctx.provider == "anthropic" |
| 220 | |
| 221 | def test_set_unknown_key_stored_in_extra(self): |
| 222 | ctx = ApplicationContext.create() |