@@ -81,7 +81,10 @@ def test_collection_call_with_content():
8181 [
8282 (["key1=value1" , "key2=value2" ], {"key1" : "value1" , "key2" : "value2" }),
8383 (["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+ ),
8588 ([], {}),
8689 (None , {}),
8790 ],
@@ -103,7 +106,9 @@ def test_split_args_error_handling():
103106
104107def test_config_loading_with_valid_config (tmp_path , monkeypatch ):
105108 """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+ }
107112
108113 config_file = tmp_path / "pyproject.toml"
109114 config_file .write_text (toml .dumps (config_content ))
@@ -145,7 +150,10 @@ def test_collection_entry_with_custom_attributes():
145150 """Tests that custom attributes are passed through to collection entry"""
146151 test_collection = Collection ()
147152 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" ,
149157 )
150158 post = frontmatter .loads (content )
151159
0 commit comments