pytest-api-framework-alpha 0.3.21__tar.gz → 0.3.22__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.
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/PKG-INFO +1 -1
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/base_class.py +4 -4
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/retry_assert.py +1 -2
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/pytest_api_framework_alpha.egg-info/PKG-INFO +1 -1
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/setup.py +1 -1
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/__init__.py +0 -0
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/assert_webhook.py +0 -0
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/conftest.py +0 -0
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/db/__init__.py +0 -0
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/db/mysql_db.py +0 -0
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/db/redis_db.py +0 -0
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/exceptions.py +0 -0
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/exit_code.py +0 -0
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/extract.py +0 -0
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/global_attribute.py +0 -0
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/http_client.py +0 -0
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/render_data.py +0 -0
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/report.py +0 -0
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/script.py +0 -0
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/startapp.py +0 -0
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/utils/__init__.py +0 -0
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/utils/common.py +0 -0
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/utils/date_util.py +0 -0
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/utils/encrypt.py +0 -0
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/utils/lark_util.py +0 -0
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/utils/log_util.py +0 -0
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/utils/mock_util.py +0 -0
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/utils/yaml_util.py +0 -0
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/validate.py +0 -0
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/pytest_api_framework_alpha.egg-info/SOURCES.txt +0 -0
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/pytest_api_framework_alpha.egg-info/dependency_links.txt +0 -0
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/pytest_api_framework_alpha.egg-info/requires.txt +0 -0
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/pytest_api_framework_alpha.egg-info/top_level.txt +0 -0
- {pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/setup.cfg +0 -0
{pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/base_class.py
RENAMED
|
@@ -16,10 +16,10 @@ from framework.db.redis_db import RedisDB
|
|
|
16
16
|
from framework.db.mysql_db import MysqlDB
|
|
17
17
|
from framework.utils.log_util import logger
|
|
18
18
|
from framework.render_data import RenderData
|
|
19
|
-
from framework.http_client import ResponseUtil
|
|
20
19
|
from framework.utils.date_util import DateUtil
|
|
21
20
|
from framework.retry_assert import RetryAssert
|
|
22
21
|
from framework.assert_webhook import AssertWebhook
|
|
22
|
+
from framework.http_client import ResponseUtil, HttpClient
|
|
23
23
|
from framework.utils.encrypt import b64_encode, b64_decode
|
|
24
24
|
from framework.utils.common import snake_to_pascal, SingletonFaker
|
|
25
25
|
from framework.global_attribute import GlobalAttribute, _FRAMEWORK_CONTEXT, CONTEXT
|
|
@@ -60,7 +60,7 @@ class BaseTestCase(ExtendBaseTestCase):
|
|
|
60
60
|
risk_level: RiskLevel = RiskLevel
|
|
61
61
|
is_delayed: IsDelayed = IsDelayed
|
|
62
62
|
|
|
63
|
-
def request(self, app=None,
|
|
63
|
+
def request(self, app=None, account="", *, data, **kwargs) -> ResponseUtil:
|
|
64
64
|
try:
|
|
65
65
|
app = self.default_app(app)
|
|
66
66
|
try:
|
|
@@ -72,7 +72,7 @@ class BaseTestCase(ExtendBaseTestCase):
|
|
|
72
72
|
data.request.url = self.replace_domain(data.request.url, domain)
|
|
73
73
|
try:
|
|
74
74
|
self.set_webhook_url(app, account)
|
|
75
|
-
self.response = getattr(app_http, account).request(data=data, **kwargs)
|
|
75
|
+
self.response = getattr(app_http, account, HttpClient()).request(data=data, **kwargs)
|
|
76
76
|
except AttributeError as e:
|
|
77
77
|
raise GetAccountError(e)
|
|
78
78
|
if self.response.status_code in UNAUTHORIZED_CODE:
|
|
@@ -193,7 +193,7 @@ class BaseTestCase(ExtendBaseTestCase):
|
|
|
193
193
|
info = self.mysql_conn("db_camp_crm").query(
|
|
194
194
|
f"SELECT webhook_url FROM tbl_participant WHERE participant_code = '{account_info.client_id}';",
|
|
195
195
|
log=False)
|
|
196
|
-
if not info:
|
|
196
|
+
if not info.get("webhook_url"):
|
|
197
197
|
# self.logger.warning(f"账号{account}未配置webhook地址")
|
|
198
198
|
return None
|
|
199
199
|
except Exception as e:
|
{pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/__init__.py
RENAMED
|
File without changes
|
{pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/assert_webhook.py
RENAMED
|
File without changes
|
{pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/conftest.py
RENAMED
|
File without changes
|
{pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/db/__init__.py
RENAMED
|
File without changes
|
{pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/db/mysql_db.py
RENAMED
|
File without changes
|
{pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/db/redis_db.py
RENAMED
|
File without changes
|
{pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/exceptions.py
RENAMED
|
File without changes
|
{pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/exit_code.py
RENAMED
|
File without changes
|
{pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/extract.py
RENAMED
|
File without changes
|
|
File without changes
|
{pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/http_client.py
RENAMED
|
File without changes
|
{pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/render_data.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/startapp.py
RENAMED
|
File without changes
|
{pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/utils/__init__.py
RENAMED
|
File without changes
|
{pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/utils/common.py
RENAMED
|
File without changes
|
{pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/utils/date_util.py
RENAMED
|
File without changes
|
{pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/utils/encrypt.py
RENAMED
|
File without changes
|
{pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/utils/lark_util.py
RENAMED
|
File without changes
|
{pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/utils/log_util.py
RENAMED
|
File without changes
|
{pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/utils/mock_util.py
RENAMED
|
File without changes
|
{pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/utils/yaml_util.py
RENAMED
|
File without changes
|
{pytest_api_framework_alpha-0.3.21 → pytest_api_framework_alpha-0.3.22}/framework/validate.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|