File tree Expand file tree Collapse file tree 7 files changed +29
-25
lines changed
Expand file tree Collapse file tree 7 files changed +29
-25
lines changed Original file line number Diff line number Diff line change 3535class TestCallsApi (unittest .TestCase ):
3636 """CallsApi unit test stubs"""
3737
38- def setUp (self ) -> None :
38+ @classmethod
39+ def setUpClass (cls ) -> None :
3940 configuration = Configuration (
4041 client_id = BW_CLIENT_ID ,
4142 client_secret = BW_CLIENT_SECRET ,
4243 host = 'http://127.0.0.1:4010' ,
4344 ignore_operation_servers = True
4445 )
4546 api_client = ApiClient (configuration )
46- self .calls_api_instance = CallsApi (api_client )
47+ cls .calls_api_instance = CallsApi (api_client )
4748
4849 def test_create_call (self ) -> None :
4950 """Test case for create_call
Original file line number Diff line number Diff line change 3232class TestConferencesApi (unittest .TestCase ):
3333 """ConferencesApi unit test stubs"""
3434
35- def setUp (self ) -> None :
35+ @classmethod
36+ def setUpClass (cls ) -> None :
3637 configuration = Configuration (
3738 client_id = BW_CLIENT_ID ,
3839 client_secret = BW_CLIENT_SECRET ,
3940 host = 'http://127.0.0.1:4010' ,
4041 ignore_operation_servers = True
4142 )
4243 api_client = ApiClient (configuration )
43- self .conferences_api_instance = ConferencesApi (api_client )
44+ cls .conferences_api_instance = ConferencesApi (api_client )
4445
4546 def test_list_conferences (self ) -> None :
4647 """Test case for list_conferences
Original file line number Diff line number Diff line change 3838class TestPhoneNumberLookupApi (unittest .TestCase ):
3939 """PhoneNumberLookupApi unit test stubs"""
4040
41- def setUp (self ) -> None :
41+ @classmethod
42+ def setUpClass (cls ) -> None :
4243 configuration = Configuration (
4344 client_id = BW_CLIENT_ID ,
4445 client_secret = BW_CLIENT_SECRET ,
4546 host = 'http://127.0.0.1:4010' ,
4647 ignore_operation_servers = True
4748 )
4849 api_client = ApiClient (configuration )
49- self .api = PhoneNumberLookupApi (api_client )
50-
51- def tearDown (self ) -> None :
52- pass
50+ cls .api = PhoneNumberLookupApi (api_client )
5351
5452 def test_create_async_bulk_lookup (self ) -> None :
5553 """Test case for create_async_bulk_lookup
Original file line number Diff line number Diff line change 3434class TestRecordingsApi (unittest .TestCase ):
3535 """RecordingsApi unit test stubs"""
3636
37- def setUp (self ) -> None :
37+ @classmethod
38+ def setUpClass (cls ) -> None :
3839 configuration = Configuration (
3940 client_id = BW_CLIENT_ID ,
4041 client_secret = BW_CLIENT_SECRET ,
4142 host = 'http://127.0.0.1:4010' ,
4243 ignore_operation_servers = True
4344 )
4445 api_client = ApiClient (configuration )
45- self .recordings_api_instance = RecordingsApi (api_client )
46+ cls .recordings_api_instance = RecordingsApi (api_client )
4647
47- self .call_id = "c-1234"
48- self .recording_id = "r-1234"
48+ cls .call_id = "c-1234"
49+ cls .recording_id = "r-1234"
4950
5051 def test_update_call_recording_state (self ) -> None :
5152 """Test case for update_call_recording_state
Original file line number Diff line number Diff line change 2525class TestStatisticsApi (unittest .TestCase ):
2626 """StatisticsApi unit test stubs"""
2727
28- def setUp (self ) -> None :
28+ @classmethod
29+ def setUpClass (cls ) -> None :
2930 configuration = Configuration (
3031 client_id = BW_CLIENT_ID ,
3132 client_secret = BW_CLIENT_SECRET ,
3233 host = 'http://127.0.0.1:4010' ,
3334 ignore_operation_servers = True
3435 )
3536 api_client = ApiClient (configuration )
36- self .statistics_api_instance = StatisticsApi (api_client )
37+ cls .statistics_api_instance = StatisticsApi (api_client )
3738
3839 def test_get_statistics (self ) -> None :
3940 """Test case for get_statistics
Original file line number Diff line number Diff line change 4141class TestTollFreeVerificationApi (unittest .TestCase ):
4242 """TollFreeVerificationApi unit test stubs"""
4343
44- def setUp (self ) -> None :
44+ @classmethod
45+ def setUpClass (cls ) -> None :
4546 configuration = Configuration (
4647 client_id = BW_CLIENT_ID ,
4748 client_secret = BW_CLIENT_SECRET ,
4849 host = 'http://127.0.0.1:4010' ,
4950 ignore_operation_servers = True
5051 )
5152 api_client = ApiClient (configuration )
52- self .tfv_api_instance = TollFreeVerificationApi (api_client )
53+ cls .tfv_api_instance = TollFreeVerificationApi (api_client )
5354
54- self .subscription_id = 'test-id-1234'
55- self .tf_phone_number = '+18005551234'
55+ cls .subscription_id = 'test-id-1234'
56+ cls .tf_phone_number = '+18005551234'
5657
57- self .webhook_subscription_request_schema = WebhookSubscriptionRequestSchema (
58+ cls .webhook_subscription_request_schema = WebhookSubscriptionRequestSchema (
5859 basic_authentication = TfvBasicAuthentication (
5960 username = 'username' ,
6061 password = 'password'
@@ -63,7 +64,7 @@ def setUp(self) -> None:
6364 shared_secret_key = 'shared-secret-key'
6465 )
6566
66- self .verification = {
67+ cls .verification = {
6768 'businessAddress' : Address (
6869 name = 'name' ,
6970 addr1 = 'addr1' ,
Original file line number Diff line number Diff line change 2929class TestTranscriptionsApi (unittest .TestCase ):
3030 """TranscriptionsApi unit test stubs"""
3131
32- def setUp (self ) -> None :
32+ @classmethod
33+ def setUpClass (cls ) -> None :
3334 configuration = Configuration (
3435 client_id = BW_CLIENT_ID ,
3536 client_secret = BW_CLIENT_SECRET ,
3637 host = 'http://127.0.0.1:4010' ,
3738 ignore_operation_servers = True
3839 )
3940 api_client = ApiClient (configuration )
40- self .transcriptions_api_instance = TranscriptionsApi (api_client )
41+ cls .transcriptions_api_instance = TranscriptionsApi (api_client )
4142
42- self .call_id = "c-abc123"
43- self .transcription_id = "t-abc123"
43+ cls .call_id = "c-abc123"
44+ cls .transcription_id = "t-abc123"
4445
4546 def test_list_real_time_transcriptions (self ) -> None :
4647 """Test case for list_real_time_transcriptions
You can’t perform that action at this time.
0 commit comments