(self)
| 443 | self.assertIn("warn_tpyo", stream.getvalue()) |
| 444 | |
| 445 | def test_flatten_flags(self): |
| 446 | cfg = Config() |
| 447 | cfg.MyApp.log_level = logging.WARN |
| 448 | app = MyApp() |
| 449 | app.update_config(cfg) |
| 450 | self.assertEqual(app.log_level, logging.WARN) |
| 451 | self.assertEqual(app.config.MyApp.log_level, logging.WARN) |
| 452 | app.initialize(["--crit"]) |
| 453 | self.assertEqual(app.log_level, logging.CRITICAL) |
| 454 | # this would be app.config.Application.log_level if it failed: |
| 455 | self.assertEqual(app.config.MyApp.log_level, logging.CRITICAL) |
| 456 | |
| 457 | def test_flatten_aliases(self): |
| 458 | cfg = Config() |
nothing calls this directly
no test coverage detected