Skip to content
This repository was archived by the owner on Apr 12, 2018. It is now read-only.

Commit 93dbffa

Browse files
committed
Update tests (fix #40): replace unittest2 by unittest
1 parent 89a29aa commit 93dbffa

File tree

12 files changed

+26
-27
lines changed

12 files changed

+26
-27
lines changed

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
install_requires=[
2929
'boto',
3030
'mock==1.0.1',
31-
'unittest2==0.5.1',
3231
'xworkflows==1.0.0',
3332
],
3433

tests/actors/test_actor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! -*- coding: utf-8 -*-
22

3-
import unittest2
3+
import unittest
44

55
import swf.settings
66
from swf.models import Domain
@@ -11,7 +11,7 @@
1111
aws_secret_access_key='fakesecret')
1212

1313

14-
class TestActor(unittest2.TestCase):
14+
class TestActor(unittest.TestCase):
1515
def setUp(self):
1616
self.domain = Domain("TestDomain")
1717
self.actor = Actor(self.domain, "test-task-list")

tests/models/test_activity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding:utf-8 -*-
22

3-
import unittest2
3+
import unittest
44

55
from mock import patch
66
from boto.swf.layer1 import Layer1
@@ -15,7 +15,7 @@ def throw(exception):
1515
raise exception
1616

1717

18-
class TestActivityType(unittest2.TestCase):
18+
class TestActivityType(unittest.TestCase):
1919

2020
def setUp(self):
2121
self.domain = Domain("test-domain")

tests/models/test_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding:utf-8 -*-
22

3-
import unittest2
3+
import unittest
44

55
from boto.swf.layer1 import Layer1
66

@@ -9,7 +9,7 @@
99
from swf.models import BaseModel
1010

1111

12-
class TestBaseModel(unittest2.TestCase):
12+
class TestBaseModel(unittest.TestCase):
1313

1414
def setUp(self):
1515
self.obj = BaseModel()

tests/models/test_domain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding:utf-8 -*-
22

3-
import unittest2
3+
import unittest
44

55
from mock import Mock, patch
66
from boto.swf.layer1 import Layer1
@@ -22,7 +22,7 @@
2222
aws_secret_access_key='fakesecret')
2323

2424

25-
class TestDomain(unittest2.TestCase):
25+
class TestDomain(unittest.TestCase):
2626
def setUp(self):
2727
self.domain = Domain("testdomain")
2828
self.qs = DomainQuerySet(self)

tests/models/test_event.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding:utf-8 -*-
22

3-
import unittest2
3+
import unittest
44

55
from swf.models.event import Event
66
from swf.models.history import History
@@ -9,7 +9,7 @@
99
from ..mocks.event import mock_get_workflow_execution_history
1010

1111

12-
class TestEvent(unittest2.TestCase):
12+
class TestEvent(unittest.TestCase):
1313

1414
def setUp(self):
1515
pass
@@ -28,7 +28,7 @@ def test_repr_with_missing_attr(self):
2828
ev.__repr__()
2929

3030

31-
class TestHistory(unittest2.TestCase):
31+
class TestHistory(unittest.TestCase):
3232

3333
def setUp(self):
3434
self.event_list = mock_get_workflow_execution_history()

tests/models/test_workflow.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding:utf-8 -*-
22

3-
import unittest2
3+
import unittest
44

55
from mock import patch
66
from boto.swf.layer1 import Layer1
@@ -17,7 +17,7 @@
1717
from ..mocks.event import mock_get_workflow_execution_history
1818

1919

20-
class TestWorkflowType(unittest2.TestCase):
20+
class TestWorkflowType(unittest.TestCase):
2121
def setUp(self):
2222
self.domain = Domain("test-domain")
2323
self.wt = WorkflowType(self.domain, "TestType", "1.0")
@@ -219,7 +219,7 @@ def test_delete_deprecated_type(self):
219219
self.wt.delete()
220220

221221

222-
class TestWorkflowExecution(unittest2.TestCase):
222+
class TestWorkflowExecution(unittest.TestCase):
223223
def setUp(self):
224224
self.domain = Domain("TestDomain")
225225
self.wt = WorkflowType(self.domain, "TestType", "1.0")

tests/querysets/test_activity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding:utf-8 -*-
22

3-
import unittest2
3+
import unittest
44

55
from mock import patch
66

@@ -21,7 +21,7 @@
2121
aws_secret_access_key='fakesecret')
2222

2323

24-
class TestActivityTypeQuerySet(unittest2.TestCase):
24+
class TestActivityTypeQuerySet(unittest.TestCase):
2525

2626
def setUp(self):
2727
self.domain = Domain("TestDomain")

tests/querysets/test_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# -*- coding:utf-8 -*-
22

3-
import unittest2
3+
import unittest
44

55
from swf.querysets.base import BaseQuerySet
66

77

8-
class TestBaseQuerySet(unittest2.TestCase):
8+
class TestBaseQuerySet(unittest.TestCase):
99

1010
def setUp(self):
1111
self.base_qs = BaseQuerySet()

tests/querysets/test_domain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding:utf-8 -*-
22

3-
import unittest2
3+
import unittest
44

55
from mock import patch
66

@@ -20,7 +20,7 @@
2020
aws_secret_access_key='fakesecret')
2121

2222

23-
class TestDomainQuerySet(unittest2.TestCase):
23+
class TestDomainQuerySet(unittest.TestCase):
2424
def setUp(self):
2525
self.domain = Domain("test-domain")
2626
self.qs = DomainQuerySet()

0 commit comments

Comments
 (0)