summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Durán Castañeda <rafadurancastaneda@gmail.com>2012-07-06 00:56:23 +0200
committerRafael Durán Castañeda <rafadurancastaneda@gmail.com>2012-07-06 00:56:23 +0200
commit04df79b64e5f2296df03579700535774e158f623 (patch)
tree582f971be8b6ba88649aba946f464a50bb2e332d
parentf584c06aaa3ecb774f6aa68eb72cebd59f772fad (diff)
Run pep8 for tests.
Fixes bug 1021508 Test code should be as pep8 compliant as source code, however right now 'run_tests.sh' only runs pep8 for source code. Change-Id: I877493a8bf6f28bef71fe2aca6f188a75798225f
-rwxr-xr-xrun_tests.sh2
-rw-r--r--tests/test_backend_ldap.py1
2 files changed, 1 insertions, 2 deletions
diff --git a/run_tests.sh b/run_tests.sh
index 68e028a2..a225d78d 100755
--- a/run_tests.sh
+++ b/run_tests.sh
@@ -108,7 +108,7 @@ function run_pep8 {
ignore_dirs="*ajaxterm*"
GLOBIGNORE="$ignore_scripts:$ignore_files:$ignore_dirs"
srcfiles=`find bin -type f ! -name .*.swp`
- srcfiles+=" keystone"
+ srcfiles+=" keystone tests"
# Just run PEP8 in current environment
${wrapper} pep8 --repeat --show-pep8 --show-source \
--exclude=vcsversion.py ${srcfiles} | tee pep8.txt
diff --git a/tests/test_backend_ldap.py b/tests/test_backend_ldap.py
index f81f0eb9..7dfb29a4 100644
--- a/tests/test_backend_ldap.py
+++ b/tests/test_backend_ldap.py
@@ -146,4 +146,3 @@ class LDAPIdentity(test.TestCase, test_backend.IdentityTests):
user_api = identity_ldap.UserApi(CONF)
self.assertTrue(user_api)
self.assertEquals(user_api.tree_dn, "ou=Users,%s" % CONF.ldap.suffix)
-