EastAgile / robber.py

BDD / TDD assertion library for Python
MIT License
8 stars 1 forks source link

Better success message #43

Closed catriuspham closed 7 years ago

catriuspham commented 7 years ago

Success message makes no sense when running tests with a test runner. But when it comes to python shell or ipython, the story is different. Currently, this is how robber.py shows a success message on a shell:

In: expect("a cat").to.contain("cat")
Out: <robber.expect.expect at 0x7f7fe6ed4f60>

It's kinda weird. The very first time I see this, I was like "What on earth is this, does it pass?" Sure prints True when a test passes and it runs on a shell. This is really helpful and user-friendly.