levo-commons 0.2.2__tar.gz → 0.2.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {levo_commons-0.2.2 → levo_commons-0.2.4}/PKG-INFO +1 -1
- {levo_commons-0.2.2 → levo_commons-0.2.4}/setup.py +1 -1
- {levo_commons-0.2.2 → levo_commons-0.2.4}/src/levo_commons/models.py +1 -0
- {levo_commons-0.2.2 → levo_commons-0.2.4}/src/levo_commons/request_utils.py +1 -1
- {levo_commons-0.2.2 → levo_commons-0.2.4}/src/levo_commons.egg-info/PKG-INFO +1 -1
- {levo_commons-0.2.2 → levo_commons-0.2.4}/test/test_request_utils.py +11 -0
- {levo_commons-0.2.2 → levo_commons-0.2.4}/README.md +0 -0
- {levo_commons-0.2.2 → levo_commons-0.2.4}/pyproject.toml +0 -0
- {levo_commons-0.2.2 → levo_commons-0.2.4}/setup.cfg +0 -0
- {levo_commons-0.2.2 → levo_commons-0.2.4}/src/levo_commons/__init__.py +0 -0
- {levo_commons-0.2.2 → levo_commons-0.2.4}/src/levo_commons/config.py +0 -0
- {levo_commons-0.2.2 → levo_commons-0.2.4}/src/levo_commons/cwe.py +0 -0
- {levo_commons-0.2.2 → levo_commons-0.2.4}/src/levo_commons/events.py +0 -0
- {levo_commons-0.2.2 → levo_commons-0.2.4}/src/levo_commons/failures.py +0 -0
- {levo_commons-0.2.2 → levo_commons-0.2.4}/src/levo_commons/params.py +0 -0
- {levo_commons-0.2.2 → levo_commons-0.2.4}/src/levo_commons/providers.py +0 -0
- {levo_commons-0.2.2 → levo_commons-0.2.4}/src/levo_commons/status.py +0 -0
- {levo_commons-0.2.2 → levo_commons-0.2.4}/src/levo_commons/types.py +0 -0
- {levo_commons-0.2.2 → levo_commons-0.2.4}/src/levo_commons/utils.py +0 -0
- {levo_commons-0.2.2 → levo_commons-0.2.4}/src/levo_commons.egg-info/SOURCES.txt +0 -0
- {levo_commons-0.2.2 → levo_commons-0.2.4}/src/levo_commons.egg-info/dependency_links.txt +0 -0
- {levo_commons-0.2.2 → levo_commons-0.2.4}/src/levo_commons.egg-info/requires.txt +0 -0
- {levo_commons-0.2.2 → levo_commons-0.2.4}/src/levo_commons.egg-info/top_level.txt +0 -0
- {levo_commons-0.2.2 → levo_commons-0.2.4}/test/test_config.py +0 -0
- {levo_commons-0.2.2 → levo_commons-0.2.4}/test/test_sanity.py +0 -0
- {levo_commons-0.2.2 → levo_commons-0.2.4}/test/test_utils.py +0 -0
|
@@ -534,6 +534,7 @@ class BeforeTestSuiteExecutionPayload(Payload):
|
|
|
534
534
|
auth_headers: List[str] = attr.ib(factory=list)
|
|
535
535
|
endpoint_id: Optional[str] = attr.ib(default=None)
|
|
536
536
|
app_id: Optional[str] = attr.ib(default=None)
|
|
537
|
+
target_urls: Optional[List[str]] = attr.ib(default=None)
|
|
537
538
|
|
|
538
539
|
|
|
539
540
|
@attr.s(slots=True)
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
#
|
|
7
7
|
import base64
|
|
8
8
|
|
|
9
|
+
import pytest
|
|
9
10
|
import requests
|
|
10
11
|
|
|
11
12
|
from levo_commons.models import Response
|
|
@@ -116,3 +117,13 @@ def test_string_error_code():
|
|
|
116
117
|
|
|
117
118
|
response._content = '{"success":true,"code":"401","data":{"express_kyc_status":"NOT_STARTED"},"msg":""}'
|
|
118
119
|
assert get_error_code_from_response_body(response) == 401
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
@pytest.mark.parametrize("res_body", ["[]", "12345"])
|
|
123
|
+
def test_non_dict_json_body(res_body):
|
|
124
|
+
response = requests.Response()
|
|
125
|
+
response._content = res_body
|
|
126
|
+
try:
|
|
127
|
+
assert get_error_code_from_response_body(response) is None
|
|
128
|
+
except AttributeError:
|
|
129
|
+
pytest.fail("Should not raise AttributeError")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|