Revision: d45f923fdfb7
Author: Pekka Klärck
Date: Mon Sep 19 05:00:31 2011
Log: updated example after we decided not to support init args with
dynamic libs
http://code.google.com/p/robotframework/source/detail?r=d45f923fdfb7
Modified:
/tools/libdoc/test/dynamic.py
=======================================
--- /tools/libdoc/test/dynamic.py Fri Sep 16 07:30:45 2011
+++ /tools/libdoc/test/dynamic.py Mon Sep 19 05:00:31 2011
@@ -1,7 +1,8 @@
class dynamic:
-
- def __init__(self, arg="This arg should not be used"):
- """This doc should not be used."""
+ """This is overwritten and not shown in docs"""
+
+ def __init__(self, arg="This is shown in docs"):
+ """This is overwritten and not shown in docs"""
def get_keyword_names(self):
return ['Keyword 1', 'KW 2']
@@ -10,8 +11,6 @@
print name, args
def get_keyword_arguments(self, name):
- if name == '__init__':
- return ['dyn_arg=This arg returned dynamically']
return ['arg%d' % (i+1) for i in range(int(name[-1]))]
def get_keyword_documentation(self, name):