unit test error when testing more than app
Bug #807653 reported by
dbartenstein
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
RPC4Django |
Fix Released
|
Medium
|
davidfischer |
Bug Description
When I call unit tests for multiple apps like 'python manage.py test main server' (main and server are both apps), the test fails with TemplateSyntaxE
This has to do with the statement 'if callable(method) and \ hasattr(method, 'is_rpcmethod') and \ method.is_rpcmethod == True:' in rpcdispatcher.py and is provoked when method is an instance of ServerProxy. hasattr always returns True on a ServerProxy object.
As (temporary) workaround I added a check for ServerProxy instance (see attachment).
Changed in rpc4django: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
I'll get this into the release.