What happens:
If an API Error occurs during CI tests, additional informations are printed to the log file:
# raise error
try:
param_repr = str(self._params)
pywikibot.log('API Error: query=\n{}'
.format(pprint.pformat(param_repr)))
pywikibot.log(f' response=\n{result}')
raise pywikibot.exceptions.APIError(**error)
except TypeError:
raise RuntimeError(result)But the log is not reachable an the important information is lost.
The log is printed in "Generate user files" section but not in Test section.
What should have happened instead?:
Either the log should be reachable somehow or the informations should be printed to terminal