adding latest tests

This commit is contained in:
2021-10-30 01:17:08 +01:00
parent d82c41f2ff
commit be55e20e4d
4 changed files with 74 additions and 3 deletions

View File

@@ -24,6 +24,8 @@ Documentation:
☐ Document how to use pytest to read a logging message
<https://stackoverflow.com/questions/53125305/testing-logging-output-with-pytest>
☐ Document using datadir with a module rather than a shared one. Link to tembo as an example.
Functionality:
✔ Move any `tembo.CONFIG` calls out of `pages.py` and ensure these are passed in from the cli. @done(21-10-28 19:44)
✔ Make `config scope` a dict in `cli.py`. @done(21-10-28 19:44)
@@ -31,6 +33,8 @@ Functionality:
✔ Add the `--example` output to the miscounted token message so the user knows the correct command to use. @done(21-10-29 00:15)
✔ Page options dataclass @done(21-10-28 20:09)
☐ Replace loggers with `click.echo` for command outputs. Keep logging messages for actual logging messages?
☐ Look at `_convert_to_path()` and see if it can be rewritten to make it clearer when there isn't a base path.
Currently checks to see if base_path is not None but this is never the case as a string must be passed in and if there isn't a base_path we pass in an empty string.
☐ Replace scoped page creator inputs so that the whole class uses the options dict rather than the variables passed around.
☐ Use the python runner Duty
<https://github.com/pawamoy/duty>