@@ -81,7 +81,10 @@ def test_collection_call_with_content():
81
81
[
82
82
(["key1=value1" , "key2=value2" ], {"key1" : "value1" , "key2" : "value2" }),
83
83
(["key1:value1" , "key2:value2" ], {"key1" : "value1" , "key2" : "value2" }),
84
- (["author=John Doe" , "tags:python,testing" ], {"author" : "John Doe" , "tags" : "python,testing" }),
84
+ (
85
+ ["author=John Doe" , "tags:python,testing" ],
86
+ {"author" : "John Doe" , "tags" : "python,testing" },
87
+ ),
85
88
([], {}),
86
89
(None , {}),
87
90
],
@@ -103,7 +106,9 @@ def test_split_args_error_handling():
103
106
104
107
def test_config_loading_with_valid_config (tmp_path , monkeypatch ):
105
108
"""Tests config loading from pyproject.toml (2025.5.1b1 feature)"""
106
- config_content = {"render-engine" : {"cli" : {"module" : "myapp" , "site" : "MySite" , "collection" : "MyCollection" }}}
109
+ config_content = {
110
+ "tool.render-engine" : {"cli" : {"module" : "myapp" , "site" : "MySite" , "collection" : "MyCollection" }}
111
+ }
107
112
108
113
config_file = tmp_path / "pyproject.toml"
109
114
config_file .write_text (toml .dumps (config_content ))
@@ -145,7 +150,10 @@ def test_collection_entry_with_custom_attributes():
145
150
"""Tests that custom attributes are passed through to collection entry"""
146
151
test_collection = Collection ()
147
152
content = create_collection_entry (
148
- content = "Test content" , collection = test_collection , author = "Test Author" , tags = "test,example"
153
+ content = "Test content" ,
154
+ collection = test_collection ,
155
+ author = "Test Author" ,
156
+ tags = "test,example" ,
149
157
)
150
158
post = frontmatter .loads (content )
151
159
0 commit comments