-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- removed tests.py unnecessary file - switch to pytest everywhere - fixed unittests after new errors where added
- Loading branch information
1 parent
e422ec6
commit f39b908
Showing
9 changed files
with
39 additions
and
78 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 |
---|---|---|
|
@@ -25,3 +25,4 @@ dist | |
# ########## | ||
.coverage | ||
cover/ | ||
cache/ |
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,26 +1,28 @@ | ||
import pep8 | ||
import os | ||
import auxiclean | ||
from nose.tools import assert_equal | ||
import unittest | ||
|
||
|
||
# Add pep8 codes to ignore below | ||
PEP8_ADDITIONAL_IGNORE = [] | ||
# add files to ignore below | ||
EXCLUDE_FILES = [] | ||
|
||
|
||
def test_pep8_conformance(): | ||
class TestPEP8(unittest.TestCase): | ||
def test_pep8_conformance(self): | ||
|
||
dirs = [] | ||
dirname = os.path.dirname(auxiclean.__file__) | ||
dirs.append(dirname) | ||
dirs = [] | ||
dirname = os.path.dirname(auxiclean.__file__) | ||
dirs.append(dirname) | ||
|
||
pep8style = pep8.StyleGuide() | ||
pep8style = pep8.StyleGuide() | ||
|
||
# Extends the number of pep8 guidelines which are not checked | ||
pep8style.options.ignore += tuple(PEP8_ADDITIONAL_IGNORE) | ||
pep8style.options.exclude.extend(EXCLUDE_FILES) | ||
# Extends the number of pep8 guidelines which are not checked | ||
pep8style.options.ignore += tuple(PEP8_ADDITIONAL_IGNORE) | ||
pep8style.options.exclude.extend(EXCLUDE_FILES) | ||
|
||
result = pep8style.check_files(dirs) | ||
msg = "Found code syntax errors (and warnings)!" | ||
assert_equal(result.total_errors, 0, msg) | ||
result = pep8style.check_files(dirs) | ||
msg = "Found code syntax errors (and warnings)!" | ||
self.assertEqual(result.total_errors, 0, msg=msg) |
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