Trivial but powerful tips for nosetests

19 November 2011   0 comments   Python

Mind That Age!

This blog post is 6 years old! Most likely, its content is outdated. Especially if it's technical.

Powered by Fusion×

I'm clearly still a nosetests beginner because it was only today that I figured out how to set certain plugins to always be on.

First of all you might like these plugins too:

$ pip install rudolf
$ pip install disabledoc

Docs: rudolf and disabledoc

To get these gorgeous little tricks into every run of nosetests edit the file ~/.noserc and add the following:

[nosetests]
with-disable-docstring=1
with-color=1

That should make your life a little easier.

UPDATE:

I've since managed to shoot myself in both legs with messing around with nosetests plugins because I heavily rely on django-nose in Django. Long story short: be careful if you get strange import related errors!

Follow @peterbe on Twitter

Comments

Thank you for posting a comment

Your email will never ever be published


Related posts

Previous:
Going real simple on HTML5 audio 14 October 2011
Next:
Integrate BrowserID in a Tornado web app 22 November 2011
Related by Keyword:
Cryptic errors when using django-nose 07 December 2011
Related by Text:
Bestest and securest way to handle Python dependencies 01 February 2016
peepin - a great companion to peep 10 September 2015
hashin - a replacement for peepin 26 January 2016
Introducing optisorl 18 August 2015
How I installed letsencrypt for Nginx 26 January 2016