-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into save-profile-prop
Signed-off-by: Abdul Samad Siddiqui <[email protected]>
- Loading branch information
Showing
8 changed files
with
79 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,6 +125,23 @@ def test_should_handle_token_auth(self): | |
self.token_props["tokenType"] + "=" + self.token_props["tokenValue"], | ||
) | ||
|
||
def test_encode_uri_component(self): | ||
"""Test string is being adjusted to the correct URL parameter""" | ||
|
||
sdk_api = SdkApi(self.basic_props, self.default_url) | ||
|
||
actual_not_empty = sdk_api._encode_uri_component('[email protected]#.$HERE(MBR#NAME)') | ||
expected_not_empty = 'MY.STRING%40.TEST%23.%24HERE(MBR%23NAME)' | ||
self.assertEqual(actual_not_empty, expected_not_empty) | ||
|
||
actual_wildcard = sdk_api._encode_uri_component('GET.#DS.*') | ||
expected_wildcard = 'GET.%23DS.*' | ||
self.assertEqual(actual_wildcard, expected_wildcard) | ||
|
||
actual_none = sdk_api._encode_uri_component(None) | ||
expected_none = None | ||
self.assertEqual(actual_none, expected_none) | ||
|
||
|
||
class TestRequestHandlerClass(unittest.TestCase): | ||
"""RequestHandler class unit tests.""" | ||
|