Hi Chris,

It looks like you invoke nosetests and not py.test, therefore you do not get 
the results one would expect with py.test:

On 7 apr 2014, at 11:52, Chris Wilson <ch...@aptivate.org> wrote:
> OK, here is one.
> 
> chris@lap-x201:~/projects/2014/webassets$ .ve/bin/tox -e py27 -- 
> tests.test_filters:TestPyScss.test_search_path

...

> py27 runtests: commands[0] | nose tests 
> tests.test_filters:TestPyScss.test_search_path

...

>  File 
> "/home/chris/projects/2014/webassets/.tox/py27/local/lib/python2.7/site-packages/nose/case.py",
>  line 197, in runTest


This is what the output from a similar test with pytest would result in: 
(Screenshot at http://pelme.se/~andreas/private/pytest_assertion.png to give 
the correct colors/formatting.)

$ py.test test_foo.py
========================================= test session starts 
==========================================
platform darwin -- Python 2.7.5 -- pytest-2.5.2.dev1
plugins: xdist
collected 1 items

test_foo.py F

=============================================== FAILURES 
===============================================
____________________________________________ test_something 
____________________________________________

    def test_something():
        foo = {'out.css': 'something'}
>       assert foo.get('out.css') == 'h1 {\n  color: #0000ff;\n}\na {\n color: 
> #ff8000;\n}\n'
E       assert 'something' == 'h1 {\n  color: #0000ff...\n color: #ff8000;\n}\n'
E         - something
E         + h1 {
E         +   color: #0000ff;
E         + }
E         + a {
E         +  color: #ff8000;
E         + }

test_foo.py:4: AssertionError
======================================= 1 failed in 0.01 seconds 
=======================================



Cheers,
Andreas

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/38638CE1-A189-4954-A412-FE77908436AA%40pelme.se.
For more options, visit https://groups.google.com/d/optout.

Reply via email to