mirror of
https://github.com/dtomlinson91/tembo.git
synced 2025-12-22 08:15:45 +00:00
adding latest tests
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
# testing notes
|
||||
|
||||
optional:
|
||||
- template_path
|
||||
- user_input
|
||||
- example
|
||||
- template_filename
|
||||
- user_input
|
||||
- template_path
|
||||
|
||||
required:
|
||||
- base_path
|
||||
@@ -14,13 +14,44 @@ required:
|
||||
- name
|
||||
|
||||
|
||||
- page using/not using input tokens
|
||||
- page with/without a template
|
||||
- user input does not match number of input tokens
|
||||
- user input is None
|
||||
- the given base path does not exist
|
||||
- page using/not using input tokens
|
||||
- user input does not match number of input tokens
|
||||
- no user input
|
||||
- mismatched user input
|
||||
- with/without example
|
||||
- page using/not using date tokens
|
||||
- page using/not using name tokens
|
||||
|
||||
|
||||
- path/page filenames can contain spaces and they are converted
|
||||
|
||||
|
||||
|
||||
@dataclass
|
||||
class PageCreatorOptions:
|
||||
"""Options dataclass to create a Page.
|
||||
|
||||
Attributes:
|
||||
base_path (str):
|
||||
page_path (str):
|
||||
filename (str):
|
||||
extension (str):
|
||||
name (str):
|
||||
user_input (Collection[str] | None, optional):
|
||||
example (str | None, optional):
|
||||
template_filename (str | None, optional):
|
||||
template_path (str | None, optional):
|
||||
"""
|
||||
|
||||
base_path: str
|
||||
page_path: str
|
||||
filename: str
|
||||
extension: str
|
||||
name: str
|
||||
user_input: Collection[str] | None = None
|
||||
example: str | None = None
|
||||
template_filename: str | None = None
|
||||
template_path: str | None = None
|
||||
|
||||
Reference in New Issue
Block a user