Skip to content

Commit

Permalink
[Tests][Fixed] The test plug-in to declare the options default
Browse files Browse the repository at this point in the history
  • Loading branch information
set-soft committed Jul 10, 2024
1 parent a5a091e commit 0113a57
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
different now. Currently they are Optionable and share more in common with
outputs. If you need assistance to migrate a preflight just open a GitHub
issue.
- Outputs: Now all options must declare its default.
- In many cases now we allow empty lists and use some sort of default.
A warning is issued, but we continue.
- Layers: now the default for missing layers is all layers.
Expand Down
1 change: 1 addition & 0 deletions docs/source/Changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ Changed:
slightly different now. Currently they are Optionable and share more
in common with outputs. If you need assistance to migrate a preflight
just open a GitHub issue.
- Outputs: Now all options must declare its default.
- In many cases now we allow empty lists and use some sort of default.
A warning is issued, but we continue.

Expand Down
2 changes: 1 addition & 1 deletion tests/.config/kiplot/plugins/out_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self):
logger.debug('Creating a test')
with document:
self.options = TestOptions
""" [dict] Options for the `test` output """ # pragma: no cover
""" [dict={}] Options for the `test` output """ # pragma: no cover

def run(self, output_dir):
logger.debug("Running test plug-in with "+output_dir)
Expand Down

0 comments on commit 0113a57

Please sign in to comment.