You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refinitiv Data Platform entitlement check is based on OAuth 2.0 specification. The first step of an application workflow is to get a token from RDP Auth Service, which will allow access to the protected resource, i.e. data REST API's.
60
+
Refinitiv Data Platform entitlement check is based on OAuth 2.0 specification. The first step of an application workflow is to get a token from RDP Auth Service, which will allow access to the protected resource, i.e. data REST API.
61
61
62
62
The API requires the following access credential information:
63
63
- Username: The username.
@@ -184,7 +184,7 @@ from rdp_controller import rdp_http_controller
184
184
185
185
class TestRDPHTTPController(unittest.TestCase):
186
186
187
-
# A class method called before tests in an individual class are run
187
+
# A class method called before all tests in an individual class are run
188
188
@classmethod
189
189
def setUpClass(cls):
190
190
# Create an app object for the RDPHTTPController class
File "....\rdp_python_unittest\tests\test_rdp_http_controller.py", line 72, in test_login_rdp_success
@@ -347,7 +347,7 @@ from rdp_controller import rdp_http_controller
347
347
348
348
class TestRDPHTTPController(unittest.TestCase):
349
349
350
-
# A class method called before tests in an individual class are run
350
+
# A class method called before all tests in an individual class are run
351
351
@classmethod
352
352
def setUpClass(cls):
353
353
# Create an app object for the RDPHTTPController class
@@ -378,7 +378,7 @@ import os
378
378
379
379
class TestRDPHTTPController(unittest.TestCase):
380
380
381
-
# A class method called before tests in an individual class are run
381
+
# A class method called before all tests in an individual class are run
382
382
@classmethod
383
383
def setUpClass(cls):
384
384
...
@@ -470,7 +470,7 @@ class TestRDPHTTPController(unittest.TestCase):
470
470
@responses.activate
471
471
def test_login_rdp_invalid(self):
472
472
"""
473
-
Test that it handle some invalid credentials
473
+
Test that it can handle some invalid credentials
474
474
"""
475
475
...
476
476
with self.assertRaises(requests.exceptions.HTTPError) as exception_context:
@@ -675,7 +675,7 @@ All RDP data services use the same token expire error message, so we load this f
675
675
676
676
class TestRDPHTTPController(unittest.TestCase):
677
677
678
-
# A class method called before tests in an individual class are run
678
+
# A class method called before all tests in an individual class are run
679
679
@classmethod
680
680
def setUpClass(cls):
681
681
# Set up previous class variables
@@ -728,7 +728,7 @@ class TestRDPHTTPController(unittest.TestCase):
728
728
@responses.activate
729
729
def test_request_esg_token_expire(self):
730
730
"""
731
-
Test that it can handle token expire requests
731
+
Test that it can handle token expiration requests
732
732
"""
733
733
# Previous code
734
734
...
@@ -748,8 +748,7 @@ class TestRDPHTTPController(unittest.TestCase):
748
748
749
749
```
750
750
751
-
The other common RDP APIs failure scenarios is the application sends the request message to RDP without the access token in the HTTP request' header. However, the *access token* is one of the ```rdp_request_esg()``` method required parameters. If the access token is not presented (None or Empty), the method raise the TypeError exception and not send HTTP request message to the RDP. The ```test_request_esg_none_empty()``` method is the one that covers this test case.
752
-
751
+
The other common RDP APIs failure scenario is the application sends the request message to RDP without the access token in the HTTP request header. However, the *access token* is one of the ```rdp_request_esg()``` method required parameters. If the access token is not presented (None or Empty), the method raises the TypeError exception and does not send an HTTP request message to the RDP. The ```test_request_esg_none_empty()``` method is the one that covers this test case.
753
752
754
753
### <aid="unittest_rdp_esg_invalid"></a>Testing Requesting RDP ESG data with an invalid item
0 commit comments