Skip to content

Commit cbf4a40

Browse files
katebruneKate Brune
andauthored
add unit tests (#41)
* update tests * update versioning * update CHANGELOG.md --------- Co-authored-by: Kate Brune <[email protected]>
1 parent 264385b commit cbf4a40

File tree

145 files changed

+6185
-1385
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+6185
-1385
lines changed

.openapi-generator/FILES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,4 +289,5 @@ requirements.txt
289289
setup.cfg
290290
setup.py
291291
test/__init__.py
292+
test/test_sms_ten_dlc_brand.py
292293
tox.ini

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
99

1010
None
1111

12+
<a name="4.4.2"></a>
13+
14+
## [4.4.2] - 2023-08-10
15+
16+
### Added
17+
18+
- generated unit tests
19+
1220
<a name="4.4.1"></a>
1321

1422
## [4.4.1] - 2023-07-26

README.md

Lines changed: 205 additions & 199 deletions
Large diffs are not rendered by default.

freeclimb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"""
1212

1313

14-
__version__ = "4.4.1"
14+
__version__ = "4.4.2"
1515

1616
# import ApiClient
1717
from freeclimb.api_client import ApiClient

freeclimb/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7777
self.default_headers[header_name] = header_value
7878
self.cookie = cookie
7979
# Set default User-Agent.
80-
self.user_agent = 'OpenAPI-Generator/4.4.1/python'
80+
self.user_agent = 'OpenAPI-Generator/4.4.2/python'
8181

8282
def __enter__(self):
8383
return self

freeclimb/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def to_debug_report(self):
405405
"OS: {env}\n"\
406406
"Python Version: {pyversion}\n"\
407407
"Version of the API: 1.0.0\n"\
408-
"SDK Package Version: 4.4.1".\
408+
"SDK Package Version: 4.4.2".\
409409
format(env=sys.platform, pyversion=sys.version)
410410

411411
def get_host_settings(self):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from setuptools import setup, find_packages # noqa: H301
1313

1414
NAME = "FreeClimb"
15-
VERSION = "4.4.1"
15+
VERSION = "4.4.2"
1616
# To install the library, run the following
1717
#
1818
# python setup.py install

test/README.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Python SDK Testing
2+
3+
## Manually added arguments
4+
5+
| Class | Arguments |
6+
| --------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
7+
| AddToConferenceAllOf | `conference_id="TEST_ID"` |
8+
| AddToConference | `conference_id="TEST_ID"` |
9+
| AvailableNumber - test_capabilities | `sms=False, voice=False,toll_free=False, ten_dlc=False, short_code=False` |
10+
| BuyIncomingPhoneNumberRequest | `phone_number="+11231231234"` |
11+
| Capabilities | `sms=False, voice=False,toll_free=False, ten_dlc=False, short_code=False` |
12+
| CreateConferenceAllOf | `action_url="TEST_URL"` |
13+
| CreateConference | `action_url="TEST_URL"` |
14+
| EnqueueAllOf | `action_url="TEST_URL", queue_id="TEST_ID", wait_url="TEST_URL"` |
15+
| Enqueue | `action_url="TEST_URL", queue_id="TEST_ID", wait_url="TEST_URL"` |
16+
| FilterLogsRequest | `pql="TEST_PQL"` |
17+
| GetDigitsAllOf | `action_url="TEST_URL"` |
18+
| GetDigits | `action_url="TEST_URL"` |
19+
| GetSpeechAllOf | `action_url="TEST_URL", grammar_file="TEST_STRING"` |
20+
| GetSpeech | `action_url="TEST_URL", grammar_file="TEST_STRING"` |
21+
| IncomingNumberResultAllOf - test_capabilities | `sms=False, voice=False,toll_free=False, ten_dlc=False, short_code=False` |
22+
| IncomingNumberResult - test_capabilities | `sms=False, voice=False,toll_free=False, ten_dlc=False, short_code=False` |
23+
| MakeCallRequest | `_from="+11231231234", to="+11231231234"` |
24+
| MessageRequestAllOf | `_from="+11231231234", to="+11231231234", text="TEST_STRING"` |
25+
| MessageRequest | `_from="+11231231234", to="+11231231234"` |
26+
| OutDialAllOf | `action_url="TEST_URL", call_connect_url="TEST_URL", calling_number="+11231231234", destination="+11231231234"` |
27+
| OutDial | `action_url="TEST_URL", call_connect_url="TEST_URL", calling_number="+11231231234", destination="+11231231234"` |
28+
| ParkAllOf | `wait_url="TEST_URL", action_url="TEST_URL"` |
29+
| Park | `wait_url="TEST_URL", action_url="TEST_URL"` |
30+
| PauseAllOf | `length=1` |
31+
| Pause | `length=1` |
32+
| PlayAllOf | `file="TEST_STRING"` |
33+
| PlayEarlyMediaAllOf | `file="TEST_STRING"` |
34+
| PlayEarlyMedia | `file="TEST_STRING"` |
35+
| Play | `file="TEST_STRING"` |
36+
| RecordUtteranceAllOf | `action_url="TEST_URL"` |
37+
| RecordUtterance | `action_url="TEST_URL"` |
38+
| RedirectAllOf | `action_url="TEST_URL"` |
39+
| Redirect | `action_url="TEST_URL"` |
40+
| RemoveFromConferenceAllOf | `call_id="TEST_ID"` |
41+
| RemoveFromConference | `call_id="TEST_ID"` |
42+
| SayAllOf | `text="TEST_STRING"` |
43+
| Say | `text="TEST_STRING"` |
44+
| SendDigitsAllOf | `digits="TEST_STRING"` |
45+
| SendDigits | `digits="TEST_STRING"` |
46+
| SetListenAllOf | `call_id="TEST_ID"` |
47+
| SetListen | `call_id="TEST_ID"` |
48+
| SetTalkAllOf | `call_id="TEST_ID"` |
49+
| SetTalk | `call_id="TEST_ID"` |
50+
| SmsAllOf | `to="+11231231234", _from= "+11231231234", text="TEST_STRING"` |
51+
| Sms | `to="+11231231234", _from= "+11231231234", text="TEST_STRING"` |
52+
| SMSTenDLCBrand | `entity_type="PRIVATE_PROFIT", display_name="TEST_STRING,phone="TEST_STRING",country="TS", email="TEST_STRING", brand_relationship="BASIC_ACCOUNT", vertical="TEST_STRING", mock=True, identity_status="VERIFIED` |
53+
| SMSTenDLCCampaign | `campaign_id="TET_STRING", csp_id="TEST_STRING", brand_id="TEST_STR", usecase="TEST_STRING", sub_usecases=[], description="TEST_STRING", mock=True` |
54+
| SMSTenDLCPartnerCampaignBrand | `phone="TEST_STRING", email="TEST_STRING"` |
55+
| SMSTenDLCPartnerCampaign | `campaign_id="TEST_STRING", brand_id="TEST_STR", usecase="TEST_STRING", description="TEST_STRING"` |
56+
| SMSTenDLCPartnerCampaign - test_brand (SMSTenDLCPartnerCampaignBrand) | `phone="TEST_STRING", email="TEST_STRING"` |
57+
| TerminateConferenceAllOf | `conference_id="TEST_STRING"` |
58+
| TerminateConference | `conference_id="TEST_STRING"` |
59+
| UpdateCallRequest | `status="TEST_STRING"` |

test/test_account_request.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,29 @@
1111

1212
import sys
1313
import unittest
14+
import datetime
15+
import decimal
1416

1517
import freeclimb
1618

1719
from freeclimb.model.account_request import AccountRequest # noqa: E501
1820

21+
1922
class TestAccountRequest(unittest.TestCase):
2023
"""AccountRequest unit test stubs"""
2124

2225
def setUp(self):
23-
pass
26+
self.model = AccountRequest()
2427

25-
def tearDown(self):
26-
pass
28+
def test_alias(self):
29+
"""Test AccountRequest.alias"""
30+
self.model.alias = "TEST_STRING"
31+
assert self.model.get("alias") == "TEST_STRING"
2732

28-
def testAccountRequest(self):
29-
"""Test AccountRequest"""
30-
# FIXME: construct object with mandatory attributes with example values
31-
# model = AccountRequest() # noqa: E501
32-
pass
33+
def test_label(self):
34+
"""Test AccountRequest.label"""
35+
self.model.label = "TEST_STRING"
36+
assert self.model.get("label") == "TEST_STRING"
3337

3438

3539
if __name__ == '__main__':

0 commit comments

Comments
 (0)