Skip to main content

A blazing-fast toolkit to generate test cases using pytest framework.

Project description

Fyre Tool Kit

介绍

一款使用pytest框架生成测试用例的便捷开发工具包.

软件架构

软件架构说明

特点:

  • YAML -> Pydantic模式验证
  • 强制字段检查
  • 生成与pytest兼容的测试模块(每个test_suite一个模块)
  • 用于将生成的测试写入磁盘的实用程序

发布包到 Gitea PyPI 包注册表

  1. 配置包注册表以编辑本地 ~/.pypirc 文件
[distutils]
index-servers = gitea
[gitea]
repository = https://gitea.example.com/api/packages/{owner}/pypi
username = {username}
password = {password}
占位符 描述
owner 包的所有者。
username 您的 Gitea 用户名。
password 您的 Gitea 密码。如果您使用 2FA 或 OAuth,请使用个人访问令牌代替密码。
  1. 通过运行以下命令发布包
$ uv run python3 -m twine upload --repository gitea /path/to/files/*
  1. 从包注册表安装 PyPI 包,执行以下命令:
$ uv pip install --index-url https://{username}:{password}@gitea.example.com/api/packages/{owner}/pypi/simple --no-deps {package_name}
参数 描述
username 您的 Gitea 用户名。
password 您的 Gitea 密码或个人访问令牌。
owner 包的所有者。
package_name 包的名称。
例如:
$ uv pip install --index-url https://xxx:xxxx@gitea.example.com/api/packages/testuser/pypi/simple --no-deps test_package

您可以使用 --extra-index-url 代替 --index-url,但这会使您容易受到依赖混淆攻击,因为 pip 在检查指定的自定义仓库之前会检查官方 PyPi 仓库中的包。阅读 pip 文档以获取更多信息。

安装包以供其他项目使用

  1. 以“可编辑”模式安装本地项目
$ uv pip install -e <project_dir>
  1. 从 VCS 以“可编辑”模式安装项目
$ uv pip install -e "fyre-toolkit@git+https://gitea.com/marc_pango/fyre_toolkit.git"   # 从 git 安装

参与贡献

  1. 克隆本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建工单和Pull Request

参考资料表

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fyre_toolkit-0.1.19.tar.gz (58.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fyre_toolkit-0.1.19-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file fyre_toolkit-0.1.19.tar.gz.

File metadata

  • Download URL: fyre_toolkit-0.1.19.tar.gz
  • Upload date:
  • Size: 58.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fyre_toolkit-0.1.19.tar.gz
Algorithm Hash digest
SHA256 034b1241ec4ed24c2596484ff8dd4adf39a6dbfa7a52e5d744177efd061a42b2
MD5 b1e36eeb9c141748c963745eeb2ebcfb
BLAKE2b-256 8a6014255be89fab957a25142d16a0568ee9f814c365d8a3a65ac10354449f7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for fyre_toolkit-0.1.19.tar.gz:

Publisher: test.yml on pxy0592/fyre_toolkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fyre_toolkit-0.1.19-py3-none-any.whl.

File metadata

  • Download URL: fyre_toolkit-0.1.19-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fyre_toolkit-0.1.19-py3-none-any.whl
Algorithm Hash digest
SHA256 1b9ea622c9016c5a43b76d079aeb3aadeb04a169bec125d4886e63917211800c
MD5 0d1a9c4acdaf0b1b5a720724cb07243f
BLAKE2b-256 1c6fa2b6cf711f123e1056c3a556a80038450b7bf45010d1b88ca6ad4048acb5

See more details on using hashes here.

Provenance

The following attestation bundles were made for fyre_toolkit-0.1.19-py3-none-any.whl:

Publisher: test.yml on pxy0592/fyre_toolkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page