Skip to content

Commit

Permalink
fix unittests to work with aiohttp 3.10+ (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomplus committed Jul 31, 2024
1 parent 40f208c commit f3c04b2
Show file tree
Hide file tree
Showing 63 changed files with 131 additions and 128 deletions.
6 changes: 3 additions & 3 deletions kubernetes_asyncio/test/test_admissionregistration_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestAdmissionregistrationApi(unittest.TestCase):
"""AdmissionregistrationApi unit test stubs"""
class TestAdmissionregistrationApi(unittest.IsolatedAsyncioTestCase):

def setUp(self):
"""AdmissionregistrationApi unit test stubs"""
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.admissionregistration_api.AdmissionregistrationApi() # noqa: E501

def tearDown(self):
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_asyncio/test/test_admissionregistration_v1_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestAdmissionregistrationV1Api(unittest.TestCase):
class TestAdmissionregistrationV1Api(unittest.IsolatedAsyncioTestCase):
"""AdmissionregistrationV1Api unit test stubs"""

def setUp(self):
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.admissionregistration_v1_api.AdmissionregistrationV1Api() # noqa: E501

def tearDown(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestAdmissionregistrationV1alpha1Api(unittest.TestCase):
class TestAdmissionregistrationV1alpha1Api(unittest.IsolatedAsyncioTestCase):
"""AdmissionregistrationV1alpha1Api unit test stubs"""

def setUp(self):
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.admissionregistration_v1alpha1_api.AdmissionregistrationV1alpha1Api() # noqa: E501

def tearDown(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestAdmissionregistrationV1beta1Api(unittest.TestCase):
class TestAdmissionregistrationV1beta1Api(unittest.IsolatedAsyncioTestCase):
"""AdmissionregistrationV1beta1Api unit test stubs"""

def setUp(self):
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.admissionregistration_v1beta1_api.AdmissionregistrationV1beta1Api() # noqa: E501

def tearDown(self):
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_asyncio/test/test_apiextensions_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestApiextensionsApi(unittest.TestCase):
class TestApiextensionsApi(unittest.IsolatedAsyncioTestCase):
"""ApiextensionsApi unit test stubs"""

def setUp(self):
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.apiextensions_api.ApiextensionsApi() # noqa: E501

def tearDown(self):
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_asyncio/test/test_apiextensions_v1_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestApiextensionsV1Api(unittest.TestCase):
class TestApiextensionsV1Api(unittest.IsolatedAsyncioTestCase):
"""ApiextensionsV1Api unit test stubs"""

def setUp(self):
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.apiextensions_v1_api.ApiextensionsV1Api() # noqa: E501

def tearDown(self):
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_asyncio/test/test_apiregistration_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestApiregistrationApi(unittest.TestCase):
class TestApiregistrationApi(unittest.IsolatedAsyncioTestCase):
"""ApiregistrationApi unit test stubs"""

def setUp(self):
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.apiregistration_api.ApiregistrationApi() # noqa: E501

def tearDown(self):
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_asyncio/test/test_apiregistration_v1_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestApiregistrationV1Api(unittest.TestCase):
class TestApiregistrationV1Api(unittest.IsolatedAsyncioTestCase):
"""ApiregistrationV1Api unit test stubs"""

def setUp(self):
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.apiregistration_v1_api.ApiregistrationV1Api() # noqa: E501

def tearDown(self):
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_asyncio/test/test_apis_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestApisApi(unittest.TestCase):
class TestApisApi(unittest.IsolatedAsyncioTestCase):
"""ApisApi unit test stubs"""

def setUp(self):
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.apis_api.ApisApi() # noqa: E501

def tearDown(self):
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_asyncio/test/test_apps_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestAppsApi(unittest.TestCase):
class TestAppsApi(unittest.IsolatedAsyncioTestCase):
"""AppsApi unit test stubs"""

def setUp(self):
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.apps_api.AppsApi() # noqa: E501

def tearDown(self):
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_asyncio/test/test_apps_v1_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestAppsV1Api(unittest.TestCase):
class TestAppsV1Api(unittest.IsolatedAsyncioTestCase):
"""AppsV1Api unit test stubs"""

def setUp(self):
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.apps_v1_api.AppsV1Api() # noqa: E501

def tearDown(self):
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_asyncio/test/test_authentication_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestAuthenticationApi(unittest.TestCase):
class TestAuthenticationApi(unittest.IsolatedAsyncioTestCase):
"""AuthenticationApi unit test stubs"""

def setUp(self):
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.authentication_api.AuthenticationApi() # noqa: E501

def tearDown(self):
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_asyncio/test/test_authentication_v1_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestAuthenticationV1Api(unittest.TestCase):
class TestAuthenticationV1Api(unittest.IsolatedAsyncioTestCase):
"""AuthenticationV1Api unit test stubs"""

def setUp(self):
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.authentication_v1_api.AuthenticationV1Api() # noqa: E501

def tearDown(self):
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_asyncio/test/test_authentication_v1alpha1_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestAuthenticationV1alpha1Api(unittest.TestCase):
class TestAuthenticationV1alpha1Api(unittest.IsolatedAsyncioTestCase):
"""AuthenticationV1alpha1Api unit test stubs"""

def setUp(self):
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.authentication_v1alpha1_api.AuthenticationV1alpha1Api() # noqa: E501

def tearDown(self):
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_asyncio/test/test_authentication_v1beta1_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestAuthenticationV1beta1Api(unittest.TestCase):
class TestAuthenticationV1beta1Api(unittest.IsolatedAsyncioTestCase):
"""AuthenticationV1beta1Api unit test stubs"""

def setUp(self):
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.authentication_v1beta1_api.AuthenticationV1beta1Api() # noqa: E501

def tearDown(self):
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_asyncio/test/test_authorization_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestAuthorizationApi(unittest.TestCase):
class TestAuthorizationApi(unittest.IsolatedAsyncioTestCase):
"""AuthorizationApi unit test stubs"""

def setUp(self):
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.authorization_api.AuthorizationApi() # noqa: E501

def tearDown(self):
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_asyncio/test/test_authorization_v1_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestAuthorizationV1Api(unittest.TestCase):
class TestAuthorizationV1Api(unittest.IsolatedAsyncioTestCase):
"""AuthorizationV1Api unit test stubs"""

def setUp(self):
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.authorization_v1_api.AuthorizationV1Api() # noqa: E501

def tearDown(self):
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_asyncio/test/test_autoscaling_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestAutoscalingApi(unittest.TestCase):
class TestAutoscalingApi(unittest.IsolatedAsyncioTestCase):
"""AutoscalingApi unit test stubs"""

def setUp(self):
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.autoscaling_api.AutoscalingApi() # noqa: E501

def tearDown(self):
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_asyncio/test/test_autoscaling_v1_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestAutoscalingV1Api(unittest.TestCase):
class TestAutoscalingV1Api(unittest.IsolatedAsyncioTestCase):
"""AutoscalingV1Api unit test stubs"""

def setUp(self):
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.autoscaling_v1_api.AutoscalingV1Api() # noqa: E501

def tearDown(self):
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_asyncio/test/test_autoscaling_v2_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestAutoscalingV2Api(unittest.TestCase):
class TestAutoscalingV2Api(unittest.IsolatedAsyncioTestCase):
"""AutoscalingV2Api unit test stubs"""

def setUp(self):
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.autoscaling_v2_api.AutoscalingV2Api() # noqa: E501

def tearDown(self):
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_asyncio/test/test_batch_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestBatchApi(unittest.TestCase):
class TestBatchApi(unittest.IsolatedAsyncioTestCase):
"""BatchApi unit test stubs"""

def setUp(self):
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.batch_api.BatchApi() # noqa: E501

def tearDown(self):
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_asyncio/test/test_batch_v1_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestBatchV1Api(unittest.TestCase):
class TestBatchV1Api(unittest.IsolatedAsyncioTestCase):
"""BatchV1Api unit test stubs"""

def setUp(self):
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.batch_v1_api.BatchV1Api() # noqa: E501

def tearDown(self):
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_asyncio/test/test_certificates_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestCertificatesApi(unittest.TestCase):
class TestCertificatesApi(unittest.IsolatedAsyncioTestCase):
"""CertificatesApi unit test stubs"""

def setUp(self):
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.certificates_api.CertificatesApi() # noqa: E501

def tearDown(self):
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_asyncio/test/test_certificates_v1_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestCertificatesV1Api(unittest.TestCase):
class TestCertificatesV1Api(unittest.IsolatedAsyncioTestCase):
"""CertificatesV1Api unit test stubs"""

def setUp(self):
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.certificates_v1_api.CertificatesV1Api() # noqa: E501

def tearDown(self):
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_asyncio/test/test_certificates_v1alpha1_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestCertificatesV1alpha1Api(unittest.TestCase):
class TestCertificatesV1alpha1Api(unittest.IsolatedAsyncioTestCase):
"""CertificatesV1alpha1Api unit test stubs"""

def setUp(self):
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.certificates_v1alpha1_api.CertificatesV1alpha1Api() # noqa: E501

def tearDown(self):
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_asyncio/test/test_coordination_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestCoordinationApi(unittest.TestCase):
class TestCoordinationApi(unittest.IsolatedAsyncioTestCase):
"""CoordinationApi unit test stubs"""

def setUp(self):
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.coordination_api.CoordinationApi() # noqa: E501

def tearDown(self):
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_asyncio/test/test_coordination_v1_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestCoordinationV1Api(unittest.TestCase):
class TestCoordinationV1Api(unittest.IsolatedAsyncioTestCase):
"""CoordinationV1Api unit test stubs"""

def setUp(self):
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.coordination_v1_api.CoordinationV1Api() # noqa: E501

def tearDown(self):
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_asyncio/test/test_core_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestCoreApi(unittest.TestCase):
class TestCoreApi(unittest.IsolatedAsyncioTestCase):
"""CoreApi unit test stubs"""

def setUp(self):
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.core_api.CoreApi() # noqa: E501

def tearDown(self):
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_asyncio/test/test_core_v1_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestCoreV1Api(unittest.TestCase):
class TestCoreV1Api(unittest.IsolatedAsyncioTestCase):
"""CoreV1Api unit test stubs"""

def setUp(self):
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.core_v1_api.CoreV1Api() # noqa: E501

def tearDown(self):
Expand Down
4 changes: 2 additions & 2 deletions kubernetes_asyncio/test/test_custom_objects_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from kubernetes_asyncio.client.rest import ApiException


class TestCustomObjectsApi(unittest.TestCase):
class TestCustomObjectsApi(unittest.IsolatedAsyncioTestCase):
"""CustomObjectsApi unit test stubs"""

def setUp(self):
async def asyncSetUp(self):
self.api = kubernetes_asyncio.client.api.custom_objects_api.CustomObjectsApi() # noqa: E501

def tearDown(self):
Expand Down
Loading

0 comments on commit f3c04b2

Please sign in to comment.