-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2175 from cta-observatory/2174-run_tool-default-a…
…rguments Change default behaviour of `run_tool`
- Loading branch information
Showing
5 changed files
with
35 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Change default behaviour of `run_rool`: | ||
|
||
1. The default value of `raises` is now `True`. That means, when using | ||
`run_tool`, the Exceptions raised by a Tool will be re-raised. The raised | ||
exceptions can be tested for their type and content. | ||
If the Tool must fail and only the non-zero error case is important to test, | ||
set `raises=False` (as it was before). | ||
|
||
2. If the `cwd` parameter is `None` (as per default), now a temporary directory | ||
is used instead of the directory, where `run_tool` is called (typically via | ||
pytest). This way, log-files and other output files don't clutter your | ||
working space. |