(self)
| 541 | |
| 542 | class MockContext_: |
| 543 | def init_still_acts_like_superclass_init(self): |
| 544 | # No required args |
| 545 | assert isinstance(MockContext().config, Config) |
| 546 | config = Config(overrides={"foo": "bar"}) |
| 547 | # Posarg |
| 548 | assert MockContext(config).config is config |
| 549 | # Kwarg |
| 550 | assert MockContext(config=config).config is config |
| 551 | |
| 552 | def non_config_init_kwargs_used_as_return_values_for_methods(self): |
| 553 | c = MockContext(run=Result("some output")) |
nothing calls this directly
no test coverage detected