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.3.tar.gz (17.1 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: noseOfYeti-2.0.3.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

File hashes

Hashes for noseOfYeti-2.0.3.tar.gz
Algorithm Hash digest
SHA256 d8f38348ba0875e9b8f442faf5356e9ee121991b9bf427778bc69fd029925798
MD5 2e73e23c72bdb5b7652402fe544035fc
BLAKE2b-256 fe86311d8ce604c4b1f6cc0477677b1f75f525d726b2e42ec1bb4a25463028ed

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