diff options
| author | Russell Bryant <rbryant@redhat.com> | 2012-05-16 11:34:29 -0400 |
|---|---|---|
| committer | Russell Bryant <rbryant@redhat.com> | 2012-05-16 11:34:29 -0400 |
| commit | f34db0fe7414a1e8390a0a04ae33a59e73a755c8 (patch) | |
| tree | c19135710cc87e4369904d7e5a1d2da54077d979 | |
| parent | 654d80b416dc5f413cb791aa838ec8688bf7da44 (diff) | |
| download | oslo-f34db0fe7414a1e8390a0a04ae33a59e73a755c8.tar.gz oslo-f34db0fe7414a1e8390a0a04ae33a59e73a755c8.tar.xz oslo-f34db0fe7414a1e8390a0a04ae33a59e73a755c8.zip | |
Run pep8 on tests.
I noticed that pep8 wasn't running on the tests. This patch fixes that,
as well as a couple of pep8 errors in test_cfg.
Change-Id: I4429bfe6813a2e9394efb1753cbebbadb9f23833
| -rw-r--r-- | tests/unit/test_cfg.py | 3 | ||||
| -rw-r--r-- | tox.ini | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/unit/test_cfg.py b/tests/unit/test_cfg.py index 688f41a..896cc1e 100644 --- a/tests/unit/test_cfg.py +++ b/tests/unit/test_cfg.py @@ -94,7 +94,7 @@ class BaseTestCase(unittest.TestCase): (fd, path) = tempfile.mkstemp(prefix=basename, suffix=ext) else: path = basename + ext - fd = os.open(path, os.O_CREAT|os.O_WRONLY) + fd = os.open(path, os.O_CREAT | os.O_WRONLY) self.tempfiles.append(path) try: os.write(fd, contents) @@ -801,6 +801,7 @@ class TemplateSubstitutionTestCase(BaseTestCase): self.assertTrue(hasattr(self.conf.snafu, 'bell')) self.assertEquals(self.conf.snafu.bell, 'whistle-03') + class ReparseTestCase(BaseTestCase): def test_reparse(self): @@ -9,7 +9,7 @@ commands = nosetests [testenv:pep8] deps = pep8 -commands = pep8 --repeat --show-source openstack setup.py +commands = pep8 --repeat --show-source openstack tests setup.py [testenv:pylint] deps = pylint |
