big refactoring done

2 views
Skip to first unread message

Carlos Ble

unread,
Jun 11, 2011, 11:44:42 AM6/11/11
to pydo...@googlegroups.com
Hi guys!
Oscar and myself have finished a big refactoring in the framework internals. Public API
hasn't been affected. The design is simpler now.

The next task to implement will be this api:

when(collaborator.method).with_args(substr("something")).then_return(1000)

The substr function will be a matcher. We will be able to define several matchers.

I'll work on this, pairing with any of you. Any volunteer?

Cheers :-)





--
Carlos Ble
www.MavenCharts.com
www.iExpertos.com
www.carlosble.com

David Villa Alises

unread,
Sep 3, 2012, 10:29:23 AM9/3/12
to pydo...@googlegroups.com
Hi Carlos:

I am going to reply old post in the group to illustrate doublex features. I hope you do not mind.

doublex[1] supports standard hamcrest matchers. So to get this feature just:  

with Stub() as stub:
    stub.method(hamcrest.contains_string("something").returns(1000)

You may use (or implement) hamcrest matchers to support whatever you need.

[1] https://bitbucket.org/DavidVilla/python-doublex

Carlos Ble

unread,
Sep 3, 2012, 11:06:09 AM9/3/12
to pydo...@googlegroups.com
Cool man,
You can also document doublex features at the pydoubles.org site :-)


2012/9/3 David Villa Alises <david...@gmail.com>



--
Carlos Ble
www.CarlosBle.com - @carlosble 
I'll be speaking at Agile Testing Days 2012: http://www.youtube.com/watch?v=NVfr5T4OqSU&feature=youtu.be
Quieres aprender TDD? www.dirigidoPorTests.com/el-libro
Do you need mock objects? try www.pyDoubles.org
Do you need professionals? try www.MavenCharts.es
My current team: www.SaludOnNet.com

Reply all
Reply to author
Forward
0 new messages