update_config with same config object still triggers config_changed
(self)
| 576 | self.assertEqual(m.a, 15) |
| 577 | |
| 578 | def test_update_self(self): |
| 579 | """update_config with same config object still triggers config_changed""" |
| 580 | c = Config() |
| 581 | c.MyConfigurable.a = 5 |
| 582 | m = MyConfigurable(config=c) |
| 583 | self.assertEqual(m.a, 5) |
| 584 | c.MyConfigurable.a = 10 |
| 585 | m.update_config(c) |
| 586 | self.assertEqual(m.a, 10) |
| 587 | |
| 588 | def test_config_default(self): |
| 589 | class SomeSingleton(SingletonConfigurable): |
nothing calls this directly
no test coverage detected