https://github.com/vodik/hytest
pytest for hylang
https://github.com/vodik/hytest
hylang pytest pytest-plugin
Last synced: about 2 months ago
JSON representation
pytest for hylang
- Host: GitHub
- URL: https://github.com/vodik/hytest
- Owner: vodik
- License: mit
- Created: 2017-03-08T04:49:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-08T06:54:03.000Z (over 8 years ago)
- Last Synced: 2025-07-14T18:44:15.327Z (5 months ago)
- Topics: hylang, pytest, pytest-plugin
- Language: Python
- Size: 2.93 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## hytest
Experiment in mixing pytest and hy!
```hy
(require [hytest.macros [*]])
;; Define two fixtures
(deffixture good-value [] 42)
(deffixture bad-value [good-value]
(* good-value 2))
;; Define two tests
(defn test-good [good-value]
(assert (= good-value 42)))
(defn test-bad [bad-value]
(assert (= bad-value 42)))
```