Skip to main content

This is a testing micro-framework for Hy.

To use it, wrap every assert in the test-case macro call like this:

(require [hytest [test-case]])

(test-case (assert (= True True)))
(test-case (assert (= False True)))

When you run the tests you will see the source code of each test and a pass/fail indicator like this:

$ hy testtest.hy
Test:   (assert (= True True))
Pass:   ✔
Test:   (assert (= False True))
Traceback (most recent call last):
  File "/home/chrism/dev/hytmf/virtualenv/bin/hy", line 10, in <module>
    sys.exit(hy_main())
  File "/home/chrism/.pyenv/versions/3.5.5/lib/python3.5/runpy.py", line 263, in run_path
    pkg_name=pkg_name, script_name=fname)
  File "/home/chrism/.pyenv/versions/3.5.5/lib/python3.5/runpy.py", line 96, in _run_module_code
    mod_name, mod_spec, pkg_name, script_name)
  File "/home/chrism/.pyenv/versions/3.5.5/lib/python3.5/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/chrism/dev/hytmf/testtest.hy", line 5, in <module>
    (test-case (assert (= False True)))
AssertionError

Metadata

Release files for hytmf 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hytmf 0.1
File Size Uploaded Provenance Actions
hytmf-0.1.tar.gz 1.3 kB Without provenance Details for hytmf-0.1.tar.gz

Release files / hytmf-0.1.tar.gz

Download URL hytmf-0.1.tar.gz
Size 1.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1cc49674a07ce5af17c1dffa6112f8d0d627417c9dd58f969e28f8ef6e92bf43
BLAKE2b-256 checksum
How to use checksums
7c8e5f9af151df20dc1b7edbd51593fa69a334097791ccfdeb8a87029241c903
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.9.1 pkginfo/1.4.1 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.15.0 CPython/2.7.6

Security for hytmf 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.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page