Apply global upper constrints
... to make sure that this library works with the latest library versions used in OpenStack upstream development. This also fixes the broken unit tests caused by caused by recent pysnmp-lextudio . Also bump lint packages because the existing caps are too old and are not compatible with Python available in Ubuntu Jammy. Change-Id: I3aab23d23dcd9fb61a3059f5ac571ac5f282a801
This commit is contained in:
parent
73b4e3de5f
commit
f69d75ce6d
@ -259,8 +259,10 @@ class ShareType(object):
|
||||
|
||||
def get_share_type(share_type):
|
||||
"""get share type."""
|
||||
return({'nfs': ShareType.nfs,
|
||||
'cifs': ShareType.cifs}[share_type.lower()])
|
||||
return {
|
||||
'nfs': ShareType.nfs,
|
||||
'cifs': ShareType.cifs
|
||||
}[share_type.lower()]
|
||||
|
||||
|
||||
def scci_cmd(host, userid, password, cmd, port=443, auth_method='basic',
|
||||
|
@ -129,7 +129,7 @@ IRMC_CONFIG_PARTIAL = """<?xml version="1.0" encoding="UTF-8" standalone="yes" ?
|
||||
<STATUS>0</STATUS>
|
||||
</CMD>
|
||||
<!-- "Many Items Ommited..." -->
|
||||
</CMDSEQ>"""
|
||||
</CMDSEQ>""" # noqa: E501
|
||||
|
||||
|
||||
class SCCITestCase(testtools.TestCase):
|
||||
|
@ -813,7 +813,7 @@ class PhysicalPortIDParseTestCase(testtools.TestCase):
|
||||
|
||||
def _validate_handler(self, handler, handler_class, slot_type, card_type,
|
||||
slot_idx, card_idx, port_idx):
|
||||
self.assertTrue(isinstance(handler, handler_class))
|
||||
self.assertIsInstance(handler, handler_class)
|
||||
self.assertEqual(slot_type, handler.slot_type)
|
||||
self.assertEqual(card_type, handler.card_type)
|
||||
self.assertEqual(slot_idx, handler.slot_idx)
|
||||
|
16
tox.ini
16
tox.ini
@ -8,17 +8,18 @@ ignore_basepython_conflict=true
|
||||
usedevelop = True
|
||||
install_command = pip install {opts} {packages}
|
||||
deps =
|
||||
-r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||
-r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
commands = stestr run --slowest {posargs}
|
||||
|
||||
[testenv:pep8]
|
||||
basepython = python3
|
||||
deps =
|
||||
hacking>=3.1.0,<4.0.0 # Apache-2.0
|
||||
hacking>=7.0.0,<7.1.0 # Apache-2.0
|
||||
doc8>=0.6.0 # Apache-2.0
|
||||
flake8-import-order>=0.17.1 # LGPLv3
|
||||
pycodestyle>=2.0.0,<2.7.0 # MIT
|
||||
flake8-import-order>=0.18.0,<0.19.0 # LGPLv3
|
||||
pycodestyle>=2.0.0 # MIT
|
||||
Pygments>=2.2.0 # BSD
|
||||
commands =
|
||||
flake8 {posargs}
|
||||
@ -41,8 +42,9 @@ commands =
|
||||
[testenv:docs]
|
||||
basepython = python3
|
||||
deps =
|
||||
-r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/doc/requirements.txt
|
||||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||
-r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/doc/requirements.txt
|
||||
commands =
|
||||
sphinx-build -b html doc/source doc/build/html
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user