Update tests/test_utils_config.py
Run CI Tests / test (push) Successful in 54s

This commit is contained in:
2025-08-03 21:48:54 +02:00
parent 7ddcfe1bdc
commit 30a5203064
+2 -1
View File
@@ -108,7 +108,8 @@ def test_config_with_strange_and_edge_keys():
# Check that dot-access fails for bad names
for key in ["", "spaces in key", "[]", "class", "user.name", "hyphen-key", "123"]:
assert not hasattr(cfg, key), f"Key {key!r} should not be accessible via dot"
with pytest.raises(AttributeError):
_ = getattr(cfg, key)
finally:
os.remove(path)