Skip to main content

A custom pyton codec that provides an RSpec style dsl for python

Project description

This is a project creates a custom Python codec that lets you write your tests using an RSpec inspired DSL (i.e. describe and it blocks)

It uses the fact that you can register a codec that is able to modify a Python file before executing it.

http://docs.python.org/library/codecs.html

Using this we can make it so that when Python imports a file with a particular encoding as the first line of the file it will be intercepted and potentially rewritten into something else before the import continues.

nose-of-yeti uses this technique to translate from the DSL it defines, into Python classes and functions that then will be executed by your test framework of choice.

It was originally developed by Stephen Moore after borrowing the idea from a project by Fernando Meyer called Yeti

https://github.com/fmeyer/yeti

You can find documentation at http://noseofyeti.readthedocs.io and the code over at https://github.com/delfick/nose-of-yeti

Updating nose-of-yeti version

It is recommended you remove .pyc of your nose-of-yeti specs when you upgrade nose-of-yeti. The Python interpreter skips the translation process if it sees a .pyc file (unless the .py file has changed since the .pyc file was created). This means that any changes in the translation process won’t happen until either the .pyc files are removed or all the .py files have been changed.

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

noseOfYeti-2.0.1.tar.gz (16.4 kB view details)

Uploaded Source

File details

Details for the file noseOfYeti-2.0.1.tar.gz.

File metadata

  • Download URL: noseOfYeti-2.0.1.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1

File hashes

Hashes for noseOfYeti-2.0.1.tar.gz
Algorithm Hash digest
SHA256 77ff9773abcf8b393125f3bbe4c9d19f5eb3021a470d4678a0365949bc54cdf5
MD5 3b44ab4b64dc655a84bf59ef42230217
BLAKE2b-256 e6082bb2cd9b3e80d0e1c24657699df1aeca00ea7879b01586e7a158c88173e5

See more details on using hashes here.

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