Browse Source

Update hacking version to latest

Story: 2004930
Task: 29317

Change-Id: I8d7ad198599943fc23a8a55d25eab672c096725d
melissaml 3 months ago
parent
commit
226a070b4a
2 changed files with 6 additions and 7 deletions
  1. 1
    1
      test-requirements.txt
  2. 5
    6
      tests/test_email_notification.py

+ 1
- 1
test-requirements.txt View File

@@ -5,7 +5,7 @@
5 5
 
6 6
 bandit>=1.1.0 # Apache-2.0
7 7
 Babel!=2.4.0,>=2.3.4 # BSD
8
-hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
8
+hacking>=1.1.0,<1.2.0 # Apache-2.0
9 9
 coverage!=4.4,>=4.0 # Apache-2.0
10 10
 mock>=2.0.0 # BSD
11 11
 funcsigs>=1.0.0;python_version=='2.7' or python_version=='2.6' # Apache-2.0

+ 5
- 6
tests/test_email_notification.py View File

@@ -16,15 +16,18 @@
16 16
 # limitations under the License.
17 17
 
18 18
 import base64
19
+import datetime
19 20
 import email.header
20
-import mock
21 21
 import smtplib
22 22
 import socket
23 23
 import time
24 24
 
25
+import mock
25 26
 import six
26 27
 
27
-import datetime
28
+from monasca_notification.notification import Notification
29
+from monasca_notification.plugins import email_notifier
30
+from tests import base
28 31
 
29 32
 if six.PY2:
30 33
     import urlparse
@@ -32,10 +35,6 @@ else:
32 35
     from urllib import parse
33 36
     from urllib.parse import urlparse
34 37
 
35
-from monasca_notification.notification import Notification
36
-from monasca_notification.plugins import email_notifier
37
-from tests import base
38
-
39 38
 UNICODE_CHAR = six.unichr(2344)
40 39
 UNICODE_CHAR_ENCODED = UNICODE_CHAR.encode("utf-8")
41 40
 

Loading…
Cancel
Save