pytest-api-framework-alpha 0.3.7__tar.gz → 0.3.8__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.
Files changed (32) hide show
  1. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/PKG-INFO +1 -1
  2. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/framework/conftest.py +8 -8
  3. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/pytest_api_framework_alpha.egg-info/PKG-INFO +1 -1
  4. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/setup.py +1 -1
  5. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/framework/__init__.py +0 -0
  6. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/framework/base_class.py +0 -0
  7. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/framework/db/__init__.py +0 -0
  8. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/framework/db/mysql_db.py +0 -0
  9. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/framework/db/redis_db.py +0 -0
  10. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/framework/exceptions.py +0 -0
  11. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/framework/exit_code.py +0 -0
  12. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/framework/extract.py +0 -0
  13. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/framework/global_attribute.py +0 -0
  14. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/framework/http_client.py +0 -0
  15. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/framework/render_data.py +0 -0
  16. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/framework/report.py +0 -0
  17. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/framework/script.py +0 -0
  18. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/framework/startapp.py +0 -0
  19. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/framework/utils/__init__.py +0 -0
  20. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/framework/utils/common.py +0 -0
  21. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/framework/utils/date_util.py +0 -0
  22. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/framework/utils/encrypt.py +0 -0
  23. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/framework/utils/lark_util.py +0 -0
  24. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/framework/utils/log_util.py +0 -0
  25. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/framework/utils/mock_util.py +0 -0
  26. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/framework/utils/yaml_util.py +0 -0
  27. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/framework/validate.py +0 -0
  28. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/pytest_api_framework_alpha.egg-info/SOURCES.txt +0 -0
  29. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/pytest_api_framework_alpha.egg-info/dependency_links.txt +0 -0
  30. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/pytest_api_framework_alpha.egg-info/requires.txt +0 -0
  31. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/pytest_api_framework_alpha.egg-info/top_level.txt +0 -0
  32. {pytest_api_framework_alpha-0.3.7 → pytest_api_framework_alpha-0.3.8}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pytest-api-framework-alpha
3
- Version: 0.3.7
3
+ Version: 0.3.8
4
4
  Author: alpha
5
5
  Author-email:
6
6
  Requires-Python: >=3.6
@@ -20,6 +20,7 @@ import allure
20
20
  import pytest
21
21
  from box import Box
22
22
  import simplejson as json
23
+
23
24
  import config.settings as settings
24
25
  from framework.exit_code import ExitCode
25
26
  from framework.db.mysql_db import MysqlDB
@@ -522,14 +523,13 @@ def pytest_terminal_summary(terminalreporter, exitstatus, config):
522
523
  terminalreporter.write(f"跳过用例数: {skipped}\n", yellow=True, bold=True)
523
524
  terminalreporter.write(f"用例通过率: {pass_rate}%\n", green=True, bold=True)
524
525
  terminalreporter.write("====================================\n", blue=True, bold=True)
525
- CONTEXT.set("summary", {
526
- "total": total,
527
- "passed": passed,
528
- "failed": failed,
529
- "skipped": skipped,
530
- "pass_rate": pass_rate
531
- })
532
- # LarkUtil(settings.LARK_WEBHOOK).send_test_report(total=total, passed=passed, failed=failed, skipped=skipped)
526
+ LarkUtil(settings.LARK_WEBHOOK).send_test_report(
527
+ total=total,
528
+ passed=passed,
529
+ failed=failed,
530
+ skipped=skipped,
531
+ report_url=os.environ.get("ALLURE_REPORT_URL")
532
+ )
533
533
 
534
534
 
535
535
  def pytest_exception_interact(node, call, report):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pytest-api-framework-alpha
3
- Version: 0.3.7
3
+ Version: 0.3.8
4
4
  Author: alpha
5
5
  Author-email:
6
6
  Requires-Python: >=3.6
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="pytest-api-framework-alpha", # 包名(必须唯一)
5
- version="0.3.7",
5
+ version="0.3.8",
6
6
  packages=find_packages(),
7
7
  author="alpha",
8
8
  author_email="",