We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c3f619 commit eaf1fa3Copy full SHA for eaf1fa3
1 file changed
tests/test_confdantic.py
@@ -217,8 +217,8 @@ class ArbitraryTomlModel(Confdantic):
217
218
model.save(str(filepath), comments=False, serialize_unsupported=True)
219
content = filepath.read_text()
220
- expected_path = str(base_path)
221
- assert f'base_path = "{expected_path}"' in content
+ parsed = tomlkit.loads(content)
+ assert Path(parsed["base_path"]) == base_path
222
223
224
def test_save_toml_with_nested_boolean_comments(temp_dir):
0 commit comments