Fixes for pep8 tests
Pep8 tests were failing due to an error in requirements.txt pep8 was specified as allowing from 1.5.7, with no minimum version. Flake8 however fails with versions >1.6. Added this requirement, and also fixed errors from pep8 tests Change-Id: I24cb0ff34d6a28a6932a8df1206add287aca1e29
This commit is contained in:
parent
c5c9a9d88e
commit
09b6a7cd8b
@ -10,7 +10,7 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
""" Popen wrapper to allow custom patching of subprocess.Popen."""
|
"""Popen wrapper to allow custom patching of subprocess.Popen."""
|
||||||
|
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ import sys
|
|||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
import ipaddress
|
import ipaddress
|
||||||
from novaclient.v1_1 import client
|
import novaclient.v1_1
|
||||||
from pythonwhois import shared
|
from pythonwhois import shared
|
||||||
import six
|
import six
|
||||||
|
|
||||||
@ -128,7 +128,7 @@ def discover_host(address, config, interactive=False):
|
|||||||
|
|
||||||
def find_nova_host(address, config):
|
def find_nova_host(address, config):
|
||||||
"""See if a nova instance has the supplied address."""
|
"""See if a nova instance has the supplied address."""
|
||||||
nova = client.Client(config['username'],
|
nova = novaclient.v1_1.client.Client(config['username'],
|
||||||
config['password'],
|
config['password'],
|
||||||
config['tenant_id'],
|
config['tenant_id'],
|
||||||
config['authurl'],
|
config['authurl'],
|
||||||
|
@ -8,7 +8,7 @@ flake8_docstrings>=0.2.0 # patched for py33
|
|||||||
fixtures>=0.3.14
|
fixtures>=0.3.14
|
||||||
freezegun
|
freezegun
|
||||||
mock>=1.0
|
mock>=1.0
|
||||||
pep8>=1.5.7
|
pep8>=1.5.7,<1.6
|
||||||
pep257>=0.3.2 # patched for py33
|
pep257>=0.3.2 # patched for py33
|
||||||
sphinx>=1.2.2
|
sphinx>=1.2.2
|
||||||
testrepository>=0.0.17
|
testrepository>=0.0.17
|
||||||
|
Loading…
Reference in New Issue
Block a user