MCPcopy Create free account
hub / github.com/ipython/traitlets / test_config

Method test_config

tests/config/test_application.py:177–192  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

175 )
176
177 def test_config(self):
178 app = MyApp()
179 app.parse_command_line(
180 [
181 "--i=10",
182 "--Foo.j=10",
183 "--enable=False",
184 "--log-level=50",
185 ]
186 )
187 config = app.config
188 print(config)
189 self.assertEqual(config.Foo.i, 10)
190 self.assertEqual(config.Foo.j, 10)
191 self.assertEqual(config.Bar.enabled, False)
192 self.assertEqual(config.MyApp.log_level, 50)
193
194 def test_config_seq_args(self):
195 app = MyApp()

Callers

nothing calls this directly

Calls 2

parse_command_lineMethod · 0.80
MyAppClass · 0.70

Tested by

no test coverage detected