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

Uploaded Source

File details

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

File metadata

  • Download URL: noseOfYeti-2.1.0.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for noseOfYeti-2.1.0.tar.gz
Algorithm Hash digest
SHA256 0e43d8d07c49686570d8170fe51ab11aa0f2d5ae4ebd20073478f04cdc00bf58
MD5 686a279080d77f2ea69088e32ad142c5
BLAKE2b-256 7a136e5077576c0d1a9dbc0ea48953a6fdb3fb09a3e15278a18fd0778d1ea440

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