Skip to main content

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


Download files

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

Source Distribution

carinata-0.12.1.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

carinata-0.12.1.linux-x86_64.tar.gz (16.5 kB view details)

Uploaded Source

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

Hashes for carinata-0.12.1.tar.gz
Algorithm Hash digest
SHA256 a61bd67da27b66a07240561e6cf659150c0bca3eb986460dfb9a6a4657bb403d
MD5 5ce82bfabc9fb5938d54a07942bcb8c5
BLAKE2b-256 6b9e90a6245b3fc4c59e0072accec66a51c603150f10d7ba191d53221b2e89bc

See more details on using hashes here.

File details

Details for the file carinata-0.12.1.linux-x86_64.tar.gz.

File metadata

File hashes

Hashes for carinata-0.12.1.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 0144fd97f4974a97c9d58e60c1518ed02afbf27c37f40745dde264e0cf7cd9f0
MD5 7421d17bd2e9335a04cec8ac1cfd0601
BLAKE2b-256 786e8d69e0af54ceea514710c08a8714be8e38dac5c823d5b11fbf84d3cb789c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page