Enable pep8 testing on tests

* Add tests directory to the flake8 and linters env
* Fix up the tests failing pep8

Change-Id: I18446ed58b654fa9829e4de77219792e7b0bbbc4
This commit is contained in:
Eric Brown
2016-01-14 08:08:54 -08:00
parent d171866f5c
commit 90e1db43b7
16 changed files with 184 additions and 139 deletions

View File

@@ -14,14 +14,15 @@
# License for the specific language governing permissions and limitations
# under the License.
import bandit.cli.baseline as baseline
import fixtures
import os
import subprocess
import fixtures
import git
import testtools
import git
import bandit.cli.baseline as baseline
config = """
include:
@@ -40,6 +41,7 @@ shell_injection:
- os.system
"""
class BanditBaselineToolTests(testtools.TestCase):
def test_bandit_baseline(self):
@@ -125,4 +127,4 @@ class BanditBaselineToolTests(testtools.TestCase):
repo_directory = self.useFixture(fixtures.TempDir()).path
os.chdir(repo_directory)
return_value = baseline.initialize()
self.assertEquals(return_value, (None, None, None))
self.assertEqual(return_value, (None, None, None))