Test helpers for Anchorscad packages.
Project description
anchorscad-test-tools
This package provides a test helper for comparing two iterables based on an expectation function. It provides more information about the difference between the two iterables.
The module anchorscad_lib.test_tools is the main module in this package.
The anchorscad_lib namespace is used by a number of Anchorscad packages.
Installation
pip install anchorscad-test-tools
Usage
import unittest
from anchorscad_lib.test_tools import iterable_assert
class TestMyThing(unittest.TestCase):
def test_almost_same(self):
iterable_assert(self.assertAlmostEqual, VALUESA, VALUESB, places=3)
This is not particularly revolutionary, but it is used by a number of Anchorscad tests in now different packages which required this to be extracted into a separate package.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file anchorscad_test_tools-0.1.0.tar.gz.
File metadata
- Download URL: anchorscad_test_tools-0.1.0.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4334b2a45e7171a86dc176c678e0ca657bc3fca2ab71873d939feea2f605399
|
|
| MD5 |
cf1f2419dd86984cdd6779318682fab3
|
|
| BLAKE2b-256 |
92f8cb5d2e4610bbd702899f29cc94b1b133338da699a3bf03b072b0afca225f
|
Provenance
The following attestation bundles were made for anchorscad_test_tools-0.1.0.tar.gz:
Publisher:
publish.yml on owebeeone/anchorscad-test-tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
anchorscad_test_tools-0.1.0.tar.gz -
Subject digest:
a4334b2a45e7171a86dc176c678e0ca657bc3fca2ab71873d939feea2f605399 - Sigstore transparency entry: 160299050
- Sigstore integration time:
-
Permalink:
owebeeone/anchorscad-test-tools@2402a5ffe9291fd88f99c593b36e154aa27b3df1 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/owebeeone
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2402a5ffe9291fd88f99c593b36e154aa27b3df1 -
Trigger Event:
release
-
Statement type:
File details
Details for the file anchorscad_test_tools-0.1.0-py3-none-any.whl.
File metadata
- Download URL: anchorscad_test_tools-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d960acfa9829348cfb76456460ce9da1255b396eb127bcbc59358dadc990b8c
|
|
| MD5 |
ac122acea70b866e7512552cb45a2cf5
|
|
| BLAKE2b-256 |
2d2a8ddf745ceafcdf53433629bac647c2c7364a6ab98323e0e070fcba48835c
|
Provenance
The following attestation bundles were made for anchorscad_test_tools-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on owebeeone/anchorscad-test-tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
anchorscad_test_tools-0.1.0-py3-none-any.whl -
Subject digest:
6d960acfa9829348cfb76456460ce9da1255b396eb127bcbc59358dadc990b8c - Sigstore transparency entry: 160299052
- Sigstore integration time:
-
Permalink:
owebeeone/anchorscad-test-tools@2402a5ffe9291fd88f99c593b36e154aa27b3df1 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/owebeeone
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2402a5ffe9291fd88f99c593b36e154aa27b3df1 -
Trigger Event:
release
-
Statement type: