Commit Graph

6 Commits

Author SHA1 Message Date
Andrew Godwin
d027c57dbf Fix typo in attrs error message 2016-07-28 10:49:37 +01:00
Krukov D
d9a943a2d5 as_route method for class based consumers (#266)
* Relative imports at the base of generic

* Added as_route method to generic consumers

* Tests for as_route method for generic consumers

* Now as_route method does not create new object + less verbose creating new object (tests)

* Fix flake8 version

* Fix blank line (flake8)

* Separate kwargs of as_route method as filters and nonfilters kwargs.

* `kwargs` for filters and `attrs` for class body at `as_route` method
2016-07-28 10:48:57 +01:00
Andrew Godwin
5eb3bf848c Provide keyword args as self.kwargs in CBC (ref. #224) 2016-06-27 16:47:36 -07:00
Andrew Godwin
0fe438a445 Improve decorator support for class based consumers 2016-06-16 11:37:21 +01:00
Krukov D
2f3114b21e In-between method for adding decorators in right way + a few tests for generic consumer (#171)
* Corrected doc string for BaseConsumer

* Added get_handler method for Class-base consumers for wrapping by decorators in right way

* Added a few tests for generic consumers
2016-05-29 09:36:29 -07:00
Andrew Godwin
bfacee6319 Add class-based consumers 2016-05-25 17:45:56 -07:00