libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [10/21] libcloud git commit: Changed typo. Added pythoh-dateutil to tox.
Date Wed, 19 Dec 2018 05:34:12 GMT
Changed typo. Added pythoh-dateutil to tox.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/46096c4e
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/46096c4e
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/46096c4e

Branch: refs/heads/trunk
Commit: 46096c4ef4a75d55f86c801faa07a0e613d5a4fc
Parents: d2f933c
Author: mitch <mitch.raful@itaas.dimensiondata.com>
Authored: Tue Dec 4 22:40:35 2018 -0500
Committer: mitch <mitch.raful@itaas.dimensiondata.com>
Committed: Tue Dec 4 22:40:35 2018 -0500

----------------------------------------------------------------------
 libcloud/common/nttcis.py            | 3 +--
 libcloud/test/compute/test_nttcis.py | 9 +--------
 tox.ini                              | 2 ++
 3 files changed, 4 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/46096c4e/libcloud/common/nttcis.py
----------------------------------------------------------------------
diff --git a/libcloud/common/nttcis.py b/libcloud/common/nttcis.py
index 3232abf..9b648ac 100644
--- a/libcloud/common/nttcis.py
+++ b/libcloud/common/nttcis.py
@@ -17,7 +17,7 @@ NTTCIS Common Components
 """
 import xml.etree.ElementTree as etree
 import re
-from functools import wraps, total_ordering
+from functools import wraps
 from copy import deepcopy
 from base64 import b64encode
 from time import sleep
@@ -2095,7 +2095,6 @@ def processor(mapping, name=None):
     return process(mapping)
 
 
-@total_ordering
 def class_factory(cls_name, attrs):
     """
     This class takes a name and a dictionary to create a class.

http://git-wip-us.apache.org/repos/asf/libcloud/blob/46096c4e/libcloud/test/compute/test_nttcis.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_nttcis.py b/libcloud/test/compute/test_nttcis.py
index b88b4e1..dac4226 100644
--- a/libcloud/test/compute/test_nttcis.py
+++ b/libcloud/test/compute/test_nttcis.py
@@ -1,7 +1,5 @@
 import pytest
 from dateutil.parser import parse
-
-import sys
 from types import GeneratorType
 from libcloud.utils.py3 import httplib
 from libcloud.utils.py3 import ET
@@ -11,10 +9,6 @@ from libcloud.common.nttcis import NttCisServerCpuSpecification, NttCisServerDis
 from libcloud.common.nttcis import NttCisTag, NttCisTagKey
 from libcloud.common.nttcis import NttCisServerCpuSpecification
 from libcloud.common.nttcis import NttCisServerDisk
-from libcloud.common.nttcis import NttCisIpAddress, \
-    NttCisIpAddressList, NttCisChildIpAddressList, \
-    NttCisPortList, NttCisPort, NttCisChildPortList
-from libcloud.common.nttcis import ClassFactory
 from libcloud.common.nttcis import TYPES_URN
 from libcloud.compute.drivers.nttcis import NttCisNodeDriver as NttCis
 from libcloud.compute.drivers.nttcis import NttCisNic
@@ -2261,7 +2255,7 @@ class NttCisMockHttp(MockHttp):
             'server_startServer_INPROGRESS.xml')
         return (httplib.BAD_REQUEST, body, {}, httplib.responses[httplib.OK])
 
-    def _caas_2_7_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_sna_compute_hutdownServer(self,
method, url, body, headers):
+    def _caas_2_7_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_shutdownServer(self, method,
url, body, headers):
         request = ET.fromstring(body)
         if request.tag != "{urn:didata.com:api:cloud:types}shutdownServer":
             raise InvalidRequestError(request.tag)
@@ -3374,4 +3368,3 @@ class NttCisMockHttp(MockHttp):
             "drs_delete_consistency_group.xml"
         )
         return httplib.OK, body, {}, httplib.responses[httplib.OK]
-

http://git-wip-us.apache.org/repos/asf/libcloud/blob/46096c4e/tox.ini
----------------------------------------------------------------------
diff --git a/tox.ini b/tox.ini
index 293ccf9..7485e61 100644
--- a/tox.ini
+++ b/tox.ini
@@ -7,6 +7,7 @@ deps =
     -r{toxinidir}/requirements-tests.txt
     lockfile
     pyopenssl
+    python-dateutil
     libvirt-python==4.0.0
     py2.7: paramiko
 commands = cp libcloud/test/secrets.py-dist libcloud/test/secrets.py
@@ -105,6 +106,7 @@ commands = python -m integration
 deps =
     -r{toxinidir}/requirements-tests.txt
     pyopenssl
+    python-dateutil
     libvirt-python==4.0.0
     lockfile
 set-env =


Mime
View raw message