Test dumping simple config.
(self, temp_dir)
| 134 | """Tests for Config.dump method.""" |
| 135 | |
| 136 | def test_dump_simple(self, temp_dir): |
| 137 | """Test dumping simple config.""" |
| 138 | config_path = os.path.join(temp_dir, "config.py") |
| 139 | with open(config_path, "w") as f: |
| 140 | f.write("key = 'value'\n") |
| 141 | |
| 142 | config = Config(config_path) |
| 143 | dumped = config.dump() |
| 144 | assert isinstance(dumped, dict) |
| 145 | assert dumped["key"] == "value" |
| 146 | |
| 147 | def test_dump_nested(self, temp_dir): |
| 148 | """Test dumping nested config.""" |