Skip to main content

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

Project description

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

It uses the fact that python allows the registration of a codec that can be used to read in source code and modify it at import time.

NoseOfYeti uses this technique to find files with a particular coding declaration on the first line of a file to turn the rspec inspired DSL into ordinary python that is then executed as if it were written like that in the first place.

The original idea comes from @fmeyer who wrote this blog post and a simple proof of concept before it was picked up and worked on by @hltbra in this repo.

@delfick discovered this work in 2010 and over the following decade plus has improved on the concept, giving it more features and integration with python tooling.

The documentation can be found 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 any .pyc files are removed when NoseOfYeti is upgraded.

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 apply 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.4.3.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

noseofyeti-2.4.3-py2.py3-none-any.whl (27.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file noseofyeti-2.4.3.tar.gz.

File metadata

  • Download URL: noseofyeti-2.4.3.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for noseofyeti-2.4.3.tar.gz
Algorithm Hash digest
SHA256 53af2455a62fa757f9ac14f7dbddc902d08fc655f4d894f51bb21fedf0832ff5
MD5 cba4861de91fbbeb913681dd67f251a5
BLAKE2b-256 e8f45b13ba5bb116acd06f724c4956eff2bfa062b57585d98b36ae3790480d2f

See more details on using hashes here.

File details

Details for the file noseofyeti-2.4.3-py2.py3-none-any.whl.

File metadata

  • Download URL: noseofyeti-2.4.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 27.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for noseofyeti-2.4.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7dd416473804c4caa4bc4e1553c5b1fc349a4240f3fb6af87e865265e09f272d
MD5 d7ac88d440f9c57e48fcc9609341c0a7
BLAKE2b-256 bf2286dd5bb438ec647dbd349e3c6d79a90adad2b6487ad50c9e46ff7b2a2430

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