jenkins-bot merged this change.
[IMPR] Start filling doc_subpages for wikinews family
Bug: T195338
Change-Id: Ic75d3b082da534787e79acc7a031a6cd6d393d49
---
M pywikibot/families/wikinews_family.py
M tests/site_tests.py
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/pywikibot/families/wikinews_family.py b/pywikibot/families/wikinews_family.py
index 181e757..a496bb9 100644
--- a/pywikibot/families/wikinews_family.py
+++ b/pywikibot/families/wikinews_family.py
@@ -48,5 +48,11 @@
'uk', 'zh',
]
- # TODO:
- # Change site_tests.py when wikinews will have doc_subpage.
+ # Subpages for documentation.
+ # TODO: List is incomplete, to be completed for missing languages.
+ doc_subpages = {
+ '_default': (('/doc', ),
+ ['en', ]
+ ),
+ 'it': ('/man', ),
+ }
diff --git a/tests/site_tests.py b/tests/site_tests.py
index 7f6056b..3d81e59 100644
--- a/tests/site_tests.py
+++ b/tests/site_tests.py
@@ -205,7 +205,7 @@
'enwikinews': {
'family': 'wikinews',
'code': 'en',
- 'result': (), # To be changed when wikinews will have doc_subpage.
+ 'result': ('/doc',),
},
'enwikibooks': {
'family': 'wikibooks',
To view, visit change 473942. To unsubscribe, or for help writing mail filters, visit settings.