Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Start on windows support * More windows fixes * Remove linting on appveyor * Get it linting and passing on unix again * Try namedtempfile for logging test * Fix PYTHONPATH for tests * Skip file cleanup on error * Add helper test and couple more windows tweaks * Add appveyor badge * Forgot to lint * That shound't have been committed
- Loading branch information
1 parent
ea11086
commit eaac31e
Showing
10 changed files
with
171 additions
and
85 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
environment: | ||
|
||
matrix: | ||
|
||
# For Python versions available on Appveyor, see | ||
# http://www.appveyor.com/docs/installed-software#python | ||
|
||
- PYTHON: "C:\\Python35-x64" | ||
TOXENV: "py35" | ||
- PYTHON: "C:\\Python36-x64" | ||
TOXENV: "py36" | ||
|
||
install: | ||
- "%PYTHON%\\python.exe -m pip install tox" | ||
|
||
build: off | ||
|
||
test_script: | ||
- "%PYTHON%\\python.exe -m tox" |
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 |
---|---|---|
@@ -1,6 +1,16 @@ | ||
|
||
import unittest | ||
import unittest.mock as mock | ||
|
||
from opsdroid.helper import del_rw | ||
|
||
|
||
class TestHelper(unittest.TestCase): | ||
"""Test the opsdroid helper classes.""" | ||
|
||
def test_del_rw(self): | ||
with mock.patch('os.chmod') as mock_chmod,\ | ||
mock.patch('os.remove') as mock_remove: | ||
del_rw(None, None, None) | ||
self.assertTrue(mock_chmod.called) | ||
self.assertTrue(mock_remove.called) |
Oops, something went wrong.