-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
coalaHTMLTest.py: Add tests for coala_html.py
This commit also changes the import style for subprocess module in `coala_html.py`. It is essential because the two import style differs. `from module import method` loads the method in current module. Whereas `import module` and then `module.method()` loads the `method` from `module`. This behaviour affects the mocking. To be able to mock the `call` object I need to make sure the patch for `call` and the `call` being used in `caola_html.py` are loaded from same module. Bottomline: Mock the objects where they are being used and not where they are being defined.
- Loading branch information
1 parent
37826d2
commit c9201b4
Showing
2 changed files
with
25 additions
and
7 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