jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1337402?usp=email )

Change subject: tests: Remove unused namespace dictionaries
......................................................................

tests: Remove unused namespace dictionaries

The hard-coded namespace dictionaries were left behind when the deprecated
namespace lookup tests were removed. The remaining tests obtain their
namespaces from Namespace.builtin_namespaces(), so this setup is unused.

Change-Id: I0c29847e7f156feabe5e5a4aecd83a8ce6ae7d8d
---
M tests/namespace_tests.py
1 file changed, 0 insertions(+), 29 deletions(-)

Approvals:
  jenkins-bot: Verified
  Xqt: Looks good to me, approved




diff --git a/tests/namespace_tests.py b/tests/namespace_tests.py
index 7fc2f77..32f0581 100755
--- a/tests/namespace_tests.py
+++ b/tests/namespace_tests.py
@@ -16,35 +16,6 @@
 from tests.aspects import TestCase


-# Default namespaces which should work in any MW wiki
-_base_builtin_ns = {
-    'Media': -2,
-    'Special': -1,
-    '': 0,
-    'Talk': 1,
-    'User': 2,
-    'User talk': 3,
-    'Project': 4,
-    'Project talk': 5,
-    'MediaWiki': 8,
-    'MediaWiki talk': 9,
-    'Template': 10,
-    'Template talk': 11,
-    'Help': 12,
-    'Help talk': 13,
-    'Category': 14,
-    'Category talk': 15,
-}
-image_builtin_ns = dict(_base_builtin_ns)
-image_builtin_ns['Image'] = 6
-image_builtin_ns['Image talk'] = 7
-file_builtin_ns = dict(_base_builtin_ns)
-file_builtin_ns['File'] = 6
-file_builtin_ns['File talk'] = 7
-builtin_ns = dict(list(image_builtin_ns.items())
-                  + list(file_builtin_ns.items()))
-
-
 def builtin_NamespacesDict():
     """Return a NamespacesDict of the builtin namespaces."""
     return NamespacesDict(Namespace.builtin_namespaces())

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1337402?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I0c29847e7f156feabe5e5a4aecd83a8ce6ae7d8d
Gerrit-Change-Number: 1337402
Gerrit-PatchSet: 2
Gerrit-Owner: Mahveotm <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to