Improving pycassa.contrib.stubs

21 views
Skip to first unread message

dhu...@sproutsocial.com

unread,
Apr 25, 2013, 9:20:17 AM4/25/13
to pycass...@googlegroups.com
Hi everyone,

I was very excited to see the addition of a mocking module in the 1.8.0 release.  Unfortunately, pycassa.contrib.stubs.ColumnFamilyStub implements a small subset of ColumnFamily's functionality.  I needed a stub that would support the column_start and column_finish kwargs for get and mulitget, so I forked pycassa and implemented them.  I'd like to see the stubs module improved and expanded upon, so that it can be used to test as many usages of pycassa as possible.  I fear that at the moment that the stubs are only useful for very simple use cases.

I was wondering, what are your plans for the the pycassa.contrib.stubs module?  I would love to pitch in!

Regards,

Dave Huber

Tyler Hobbs

unread,
Apr 25, 2013, 10:34:54 AM4/25/13
to pycass...@googlegroups.com
Hi Dave,

I'm totally open to accepting improvements to the stubs module.  Just open a pull request on github and I should be able to get it in pretty quickly.

Thanks!


--
You received this message because you are subscribed to the Google Groups "pycassa-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pycassa-deve...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Tyler Hobbs
DataStax

David Huber

unread,
Apr 25, 2013, 10:42:14 AM4/25/13
to pycass...@googlegroups.com
I've created a pull request that adds column_start and column_finish to get and multiget, https://github.com/pycassa/pycassa/pull/195

Thanks again!


--
You received this message because you are subscribed to a topic in the Google Groups "pycassa-devel" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pycassa-devel/6sxJqo0zF1k/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to pycassa-deve...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
David Huber
Software Engineer
Sprout Social

dhu...@sproutsocial.com

unread,
May 2, 2013, 2:03:15 PM5/2/13
to pycass...@googlegroups.com
I've seen my pull was accepted!  Very cool!  I've created another that adds column_count and column_reversed support, https://github.com/pycassa/pycassa/pull/198


On Thursday, April 25, 2013 9:42:14 AM UTC-5, David Huber wrote:
I've created a pull request that adds column_start and column_finish to get and multiget, https://github.com/pycassa/pycassa/pull/195

Thanks again!
On Thu, Apr 25, 2013 at 9:34 AM, Tyler Hobbs <ty...@datastax.com> wrote:
Hi Dave,

I'm totally open to accepting improvements to the stubs module.  Just open a pull request on github and I should be able to get it in pretty quickly.

Thanks!
On Thu, Apr 25, 2013 at 8:20 AM, <dhu...@sproutsocial.com> wrote:
Hi everyone,

I was very excited to see the addition of a mocking module in the 1.8.0 release.  Unfortunately, pycassa.contrib.stubs.ColumnFamilyStub implements a small subset of ColumnFamily's functionality.  I needed a stub that would support the column_start and column_finish kwargs for get and mulitget, so I forked pycassa and implemented them.  I'd like to see the stubs module improved and expanded upon, so that it can be used to test as many usages of pycassa as possible.  I fear that at the moment that the stubs are only useful for very simple use cases.

I was wondering, what are your plans for the the pycassa.contrib.stubs module?  I would love to pitch in!

Regards,

Dave Huber

--
You received this message because you are subscribed to the Google Groups "pycassa-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pycassa-devel+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Tyler Hobbs
DataStax

--
You received this message because you are subscribed to a topic in the Google Groups "pycassa-devel" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pycassa-devel/6sxJqo0zF1k/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to pycassa-devel+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Tyler Hobbs

unread,
May 3, 2013, 6:58:24 PM5/3/13
to pycass...@googlegroups.com
Also accepted!  Thanks for your contributions.


To unsubscribe from this group and stop receiving emails from it, send an email to pycassa-deve...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Tyler Hobbs
DataStax
Reply all
Reply to author
Forward
0 new messages