-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keep unittests DRY, override
default_shell
in test decorator
- Tests that use the the `per_available_shell` decorator were reporting false positives for most cases b/c it appears to have been assumed that execute_shell would execute the intended shell when it was actually picking up the system shell. If shell had been passed to `execute_shell` in most places then this change would not have been needed. After observing that most cases appear to depend on overriding the config I chose to move the override into the decorator to improve DRY-ness. Signed-off-by: javrin <jawabiscuit@users.noreply.github.com>
- Loading branch information
1 parent
1c54516
commit cfd8846
Showing
4 changed files
with
15 additions
and
19 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