(self)
| 271 | klass = KeyValueConfigLoader |
| 272 | |
| 273 | def test_eval(self): |
| 274 | cl = self.klass(log=log) |
| 275 | config = cl.load_config( |
| 276 | '--C.str_trait=all --C.int_trait=5 --C.list_trait=["hello",5]'.split() |
| 277 | ) |
| 278 | c = C(config=config) |
| 279 | assert c.str_trait == "all" |
| 280 | assert c.int_trait == 5 |
| 281 | assert c.list_trait == ["hello", 5] |
| 282 | |
| 283 | def test_basic(self): |
| 284 | cl = self.klass(log=log) |
nothing calls this directly
no test coverage detected