aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHugo <hugovk@users.noreply.github.com>2019-04-07 18:17:11 +0300
committerMike Crute <crutem@amazon.com>2019-04-07 10:11:23 -0700
commit6b7990a3de49ebf9483a70003a20dd6636e8c000 (patch)
tree7fa4c6eefe49067588d5cef3640cf12bba9cf90e /tests
parent5087590bff74bb5bb71c9ae6c51bc6f27646a04b (diff)
downloadpydora-6b7990a3de49ebf9483a70003a20dd6636e8c000.tar.bz2
pydora-6b7990a3de49ebf9483a70003a20dd6636e8c000.tar.xz
pydora-6b7990a3de49ebf9483a70003a20dd6636e8c000.zip
Upgrade Python syntax with pyupgrade --py3-plus
Diffstat (limited to 'tests')
-rw-r--r--tests/test_pandora/test_client.py2
-rw-r--r--tests/test_pandora/test_models.py2
-rw-r--r--tests/test_pandora/test_transport.py4
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_pandora/test_client.py b/tests/test_pandora/test_client.py
index 901e072..9945bff 100644
--- a/tests/test_pandora/test_client.py
+++ b/tests/test_pandora/test_client.py
@@ -10,7 +10,7 @@ from tests.test_pandora.test_models import TestAdItem
10 10
11class TestAPIClientLogin(TestCase): 11class TestAPIClientLogin(TestCase):
12 12
13 class StubTransport(object): 13 class StubTransport:
14 14
15 API_VERSION = None 15 API_VERSION = None
16 16
diff --git a/tests/test_pandora/test_models.py b/tests/test_pandora/test_models.py
index 8cfbd9d..0d37ca0 100644
--- a/tests/test_pandora/test_models.py
+++ b/tests/test_pandora/test_models.py
@@ -25,7 +25,7 @@ class TestField(TestCase):
25 25
26class TestModelMetaClass(TestCase): 26class TestModelMetaClass(TestCase):
27 27
28 class TestModel(object, metaclass=m.ModelMetaClass): 28 class TestModel(metaclass=m.ModelMetaClass):
29 29
30 foo = "bar" 30 foo = "bar"
31 a_field = m.Field("testing") 31 a_field = m.Field("testing")
diff --git a/tests/test_pandora/test_transport.py b/tests/test_pandora/test_transport.py
index 96dd40e..7eaaa6b 100644
--- a/tests/test_pandora/test_transport.py
+++ b/tests/test_pandora/test_transport.py
@@ -247,7 +247,7 @@ class TestTransportRequestPrep(TestCase):
247 247
248 248
249# All Cryptor implementations must pass these test cases unmodified 249# All Cryptor implementations must pass these test cases unmodified
250class CommonCryptorTestCases(object): 250class CommonCryptorTestCases:
251 251
252 def test_decrypt_invalid_padding(self): 252 def test_decrypt_invalid_padding(self):
253 with self.assertRaises(ValueError): 253 with self.assertRaises(ValueError):
@@ -288,7 +288,7 @@ class TestEncryptor(TestCase):
288 EXPECTED_TIME = 4111 288 EXPECTED_TIME = 4111
289 ENCODED_TIME = "31353037343131313539" 289 ENCODED_TIME = "31353037343131313539"
290 290
291 class NoopCrypto(object): 291 class NoopCrypto:
292 292
293 def __init__(self, key): 293 def __init__(self, key):
294 pass 294 pass