Minor changes in the test system; XmlUnmarshaller can unmarshall XML content from a string, file handler of file path; any Appy object now has a method 'getField(name)' that returns a given field (=Appy type); bugfix while counting number of tests found in a gen-application.
This commit is contained in:
parent
2c6392aa92
commit
a8366379dd
5 changed files with 23 additions and 8 deletions
|
@ -182,7 +182,8 @@ class Generator:
|
|||
for name, elem in moduleOrClass.__dict__.iteritems():
|
||||
if type(elem) in (staticmethod, classmethod):
|
||||
elem = elem.__get__(name)
|
||||
if hasattr(elem, '__doc__') and elem.__doc__ and \
|
||||
if callable(elem) and (type(elem) != types.ClassType) and \
|
||||
hasattr(elem, '__doc__') and elem.__doc__ and \
|
||||
(elem.__doc__.find('>>>') != -1):
|
||||
res = True
|
||||
self.totalNumberOfTests += 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue