Skip to main content

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


Download files

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

Source Distribution

anchorscad_test_tools-0.1.0.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

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

anchorscad_test_tools-0.1.0-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

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

Hashes for anchorscad_test_tools-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a4334b2a45e7171a86dc176c678e0ca657bc3fca2ab71873d939feea2f605399
MD5 cf1f2419dd86984cdd6779318682fab3
BLAKE2b-256 92f8cb5d2e4610bbd702899f29cc94b1b133338da699a3bf03b072b0afca225f

See more details on using hashes here.

Provenance

The following attestation bundles were made for anchorscad_test_tools-0.1.0.tar.gz:

Publisher: publish.yml on owebeeone/anchorscad-test-tools

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

File details

Details for the file anchorscad_test_tools-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for anchorscad_test_tools-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d960acfa9829348cfb76456460ce9da1255b396eb127bcbc59358dadc990b8c
MD5 ac122acea70b866e7512552cb45a2cf5
BLAKE2b-256 2d2a8ddf745ceafcdf53433629bac647c2c7364a6ab98323e0e070fcba48835c

See more details on using hashes here.

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

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