A rough-scaled python spec generator
Project description
Carinata is a command line tool which transforms spec files into unittest cases. It tries to be a bit like RSpec, but for python. It includes a management command for Django.
Spec files contain blocks called describe, context, before, after, let and it, which in turn contain pure python. Carinata uses these blocks to create a TestCase corresponding to each it block, with the setup from before and let and the teardown from after.
See the project homepage on GitHub for more information, but here is an example:
describe "My Awesome class":
context "with the number 42":
let "awesome": Awesome(42)
it "jumps for joy":
assert self.awesome.jumps_for_joy()
context "with a string":
let "awesome": Awesome('wow!')
it "says it":
assert self.awesome.say() == "Awesome says 'wow!'"
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 carinata-0.12.1.tar.gz.
File metadata
- Download URL: carinata-0.12.1.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a61bd67da27b66a07240561e6cf659150c0bca3eb986460dfb9a6a4657bb403d
|
|
| MD5 |
5ce82bfabc9fb5938d54a07942bcb8c5
|
|
| BLAKE2b-256 |
6b9e90a6245b3fc4c59e0072accec66a51c603150f10d7ba191d53221b2e89bc
|
File details
Details for the file carinata-0.12.1.linux-x86_64.tar.gz.
File metadata
- Download URL: carinata-0.12.1.linux-x86_64.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0144fd97f4974a97c9d58e60c1518ed02afbf27c37f40745dde264e0cf7cd9f0
|
|
| MD5 |
7421d17bd2e9335a04cec8ac1cfd0601
|
|
| BLAKE2b-256 |
786e8d69e0af54ceea514710c08a8714be8e38dac5c823d5b11fbf84d3cb789c
|