Dvorapa added a comment.

They are created by a meta class during executing test scripts. There are variant keys mostly a site code and one created method is for one key/site only. This is a common way to have many small tests instead of one big on and it is easier to investigate into issues when a test fails.

Anyway why is this related to docs. These methods are created during runtime and shouldn’t be listed in any documentation.

I see. There are two problems with them right now:

  • Autodoc runs the code to find out all the methods, even those created during runtime. Therefore the docs are full of these methods without any description.
  • Some of these methods apparently does not use the metaclass, because the metaclass already contains a fix. For example the test I mentioned above (1) is not fixed by the fix in the metaclass, therefore I had to add the fix (replacing - by _) right into the test.

TASK DETAIL
https://phabricator.wikimedia.org/T187009

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Dvorapa
Cc: Dalba, Xqt, zhuyifei1999, Zoranzoki21, gerritbot, Aklapper, pywikibot-bugs-list, Dvorapa, Wenyi, Cpaulf30, Ivana_Isadora, Jayprakash12345, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, srodlund, mys_721tx, Dinoguy1000, jayvdb, Masti, Alchimista, Rxy, Jay8g
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to