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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user