pytest_server
Start service
pytest-server
Usage
import os
import sys
from pytest_server.client import run_tests, upload_allure_results
# 传入外部参数
project_name = sys.argv[1]
build_number = sys.argv[2]
build_url = sys.argv[3]
project_path = os.path.dirname(os.path.abspath(__file__))
# 确定allure测试结果生成路径
result_path = os.path.join(project_path, "allure-results")
result_path_build = os.path.join(result_path, build_number)
# 执行测试
run_tests(
project_path=project_path,
build_path=result_path_build
)
# 上传allure结果文件
upload_allure_results(
password='123456',
allure_result_path=result_path,
jenkins_project_path=rf'D:\jenkins\workspace\{project_name}',
ssh_host='Administrator@192.168.100.18',
hostkey='AAAAC3NzaC1lZDI1NTE5AAAAIHh2w7oqUW+zfUx75l6DwrKld9DlCWsXfwPkfS+2YycY',
)
Metadata
Release files for pytest-server 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytest_server-1.0.1.tar.gz | 2.9 kB | Without provenance | Details for pytest_server-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_server-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for pytest_server-1.0.1-py3-none-any.whl |
Total release size: 6.8 kB
Release files / pytest_server-1.0.1.tar.gz
| Download URL | pytest_server-1.0.1.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58d36f0c51e573c6349691c21e5b1b0f4e12a66bfce21bfd5acb12574451453b
|
|
BLAKE2b-256 checksum How to use checksums |
5c20339dba2b51744a2a907cf47ee70072425914154304c386230068387195e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.10
|
Release files / pytest_server-1.0.1-py3-none-any.whl
| Download URL | pytest_server-1.0.1-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
20641e59a3b23e2809434c4e038f462d2eef26809d84b37c0dc23aa5f88cbd5f
|
|
BLAKE2b-256 checksum How to use checksums |
04f10575a8cf6e116545e2884669526cb1c5bac7e16d32fdfd6a8d8225332ed8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.10
|
Security for pytest-server 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.