Skip to content

Commit 821c2ff

Browse files
kjaymillerRuff
and
Ruff
authored
remove filename issues (#12)
* create_new_entry * Format and lint with Ruff * add tests * Format and lint with Ruff * add changes --------- Co-authored-by: Ruff <[email protected]>
1 parent 57a5318 commit 821c2ff

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

render_engine_parser/base_parsers.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,9 @@ def parse(
6464
return content
6565

6666
@staticmethod
67-
def create_entry(*, filepath: pathlib.Path | None, content: str = "Hello World", **kwargs) -> str:
67+
def create_entry(*, content: str = "Hello World", **kwargs) -> str:
6868
"""
6969
Writes the content type that would be parsed to the content_path.
70-
71-
attrs:
72-
filepath: Only used if reading from an existing path
7370
"""
7471

7572
post = frontmatter.Post(content)

tests/test_base_parser.py

-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ def test_base_parser_parse_content_path(base_content_path):
5757

5858
def test_base_parser_net_entry():
5959
data = BasePageParser.create_entry(
60-
filepath=None, # reminder this is ignored in the base case
6160
content="This is a Test",
6261
title="Untitled Entry",
6362
slug="untitled-entry",

0 commit comments

Comments
 (0)