-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[psud] Refactor unit tests; increase unit test coverage (#146)
- Encapsulate all PsuChassisInfo test cases in a TestPsuChassisInfo class - Move TestPsuChassisInfo to its own file, test_PsuChassisInfo.py - Increase coverage of PsuChassisInfo class - Increase coverage of TestDaemonPsud class - In all test scripts, use `import psud` rather than `from psud import *` and reference everything using the `psud.` namespace. Also do the same with `mock` - Remove unnecessary try/except around import statements in psud - Add unit tests for signal_handler - Fix `TypeError: cannot concatenate 'str' and 'int' objects` in signal_handler Overall psud unit test coverage increases from 51% to 78%.
- Loading branch information
Showing
7 changed files
with
906 additions
and
346 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
Oops, something went wrong.