-
Notifications
You must be signed in to change notification settings - Fork 602
fbv failes with Exception: methods ['serializer'] in class docstring are not in view methods [u'OPTIONS', u'GET'] #153
Comments
I think it wants you to format your docstring like
though this really needs to be improved. |
Unfortunately, the problem is still there with this kind of docstring. |
rats. can you get me a complete example so I can duplicate or a failing test case that covers this? |
Actually, the cigar example does have a test case for this!
|
can't duplicate. what version of python? |
it happens both on Python 2.7.6 and Python 2.7.8 |
hmm. I seem to be using python 2.7.5. If you install tox and add to tox.ini
and run tox -e py2.7-django1.6-drf2.3.13 does it fail? or do any of the other environments fail? |
The test doesn't seem to cover the docgeneroator.get_operations function.
Have you tried running: |
whoops. add Markdown==2.5.1 to that list. running python manage.py test in tests/cigar_example passes for me, and it ought to be included in the test suite anyways. what does str(callback) return for you? |
"<class 'rest_framework.decorators." + function_name |
As if str is returning something different for you than it is for me. I know callback.name returns the name of the function, not WrappedAPIView, so I guess the code in question is pretty tenuous, but I still want to know why this is happening. What platform are you on? |
It's the same on Mac 10.9.5 and Debian Linux 7.6 |
The following documentation raised the error.
Had to change docgenerator.py:42 from:
to
This also reproduces for the example project and doesn't seem to be tested.
The text was updated successfully, but these errors were encountered: