CodeSampleX

サンプル

verify pytest in pkg:pypi/pytest@9.1.1

sha256:6e0fa108cad419e46493b64950e03b6aeb126636eb859f7b5c0740c7585838e4

このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。 合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。 MIT-0

実行証拠

宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。

証拠の基準
署名済みコントラクト合格
検証レシート
1
ビルドした署名鍵
1
宣言された環境 linux 24 · ubuntu · glibc 2.39 x64 pip

検証実行環境

環境 コントラクト ステージ 実行日
python 3.12 · linux alpine/x64 · docker ed25519:c1973797be207ac4 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · python@1python:3.12-alpine@sha256:d09d15e60962…
2026-08-27

ケース

HOW
ゴール
verify pytest in pkg:pypi/pytest@9.1.1
パッケージ
シンボル
  • pytest
作成日
2026-08-27T18:04:27Z

コントラクト

  1. pytest.approx performs tolerant float comparisons for scalar, sequence, and dictionary structures with custom abs and rel tolerances
  2. pytest.approx supports nan comparison when nan_ok is explicitly enabled
  3. pytest.raises verifies expected exception types, matches error messages with regex, and yields ExceptionInfo
  4. pytest.raises accepts multiple expected exceptions as a tuple and fails when no exception is raised
  5. pytest.MonkeyPatch context manager safely modifies environment variables and restores them on exit
  6. pytest.main executes test sessions programmatically and returns ExitCode enum values

ファイル

  • PROMPT.md
  • csx.json
  • requirements.txt
  • sample.py
  • spec.json
  • test/contract.py

ソースアーティファクトをダウンロード (tar.gz)

オリジンシーダー

匿名