jenkins-bot submitted this change.
[doc] Update tests refs
- move api_ref/tests to tests_ref
- update index.rst references
- include tests/README.rst
- remove outdated rst files
Change-Id: Ib10eb7bb58f9e3f3de889e1ae9cf0b1c477491b0
---
D docs/api_ref/tests/basepage_tests.rst
D docs/api_ref/tests/disambredir_tests.rst
D docs/api_ref/tests/exceptions_tests.rst
D docs/api_ref/tests/generate_family_files_tests.rst
D docs/api_ref/tests/i18n.pywikibot.rst
D docs/api_ref/tests/imagecopy_tests.rst
D docs/api_ref/tests/isbn_tests.rst
D docs/api_ref/tests/logentry_tests.rst
D docs/api_ref/tests/python_tests.rst
D docs/api_ref/tests/tools_ip_tests.rst
D docs/api_ref/tests/weblib_tests.rst
M docs/index.rst
M docs/scripts_ref/index.rst
R docs/tests_ref/add_text_tests.rst
R docs/tests_ref/api_tests.rst
R docs/tests_ref/archivebot_tests.rst
R docs/tests_ref/aspects.rst
A docs/tests_ref/basepage.rst
R docs/tests_ref/bot_tests.rst
R docs/tests_ref/cache_tests.rst
R docs/tests_ref/category_bot_tests.rst
R docs/tests_ref/category_tests.rst
R docs/tests_ref/checkimages_tests.rst
R docs/tests_ref/conftest.rst
R docs/tests_ref/cosmetic_changes_tests.rst
R docs/tests_ref/data_ingestion_tests.rst
R docs/tests_ref/date_tests.rst
R docs/tests_ref/deletionbot_tests.rst
R docs/tests_ref/deprecation_tests.rst
R docs/tests_ref/diff_tests.rst
R docs/tests_ref/djvu_tests.rst
R docs/tests_ref/dry_api_tests.rst
R docs/tests_ref/dry_site_tests.rst
R docs/tests_ref/edit_failure_tests.rst
R docs/tests_ref/edit_tests.rst
R docs/tests_ref/eventstreams_tests.rst
R docs/tests_ref/family_tests.rst
R docs/tests_ref/file_tests.rst
R docs/tests_ref/fixes_tests.rst
R docs/tests_ref/fixing_redirects_tests.rst
R docs/tests_ref/flow_edit_tests.rst
R docs/tests_ref/flow_tests.rst
R docs/tests_ref/flow_thanks_tests.rst
A docs/tests_ref/generate_family_file_tests.rst
R docs/tests_ref/generate_user_files_tests.rst
R docs/tests_ref/http_tests.rst
R docs/tests_ref/i18n.rst
R docs/tests_ref/i18n_tests.rst
R docs/tests_ref/index.rst
R docs/tests_ref/interwiki_graph_tests.rst
R docs/tests_ref/interwiki_link_tests.rst
R docs/tests_ref/interwikidata_tests.rst
R docs/tests_ref/l10n_tests.rst
R docs/tests_ref/link_tests.rst
A docs/tests_ref/logentries_tests.rst
R docs/tests_ref/login_tests.rst
R docs/tests_ref/mediawikiversion_tests.rst
R docs/tests_ref/namespace_tests.rst
R docs/tests_ref/noreferences_tests.rst
R docs/tests_ref/oauth_tests.rst
R docs/tests_ref/page_tests.rst
R docs/tests_ref/pagegenerators_tests.rst
R docs/tests_ref/paraminfo_tests.rst
R docs/tests_ref/patrolbot_tests.rst
R docs/tests_ref/plural_tests.rst
R docs/tests_ref/proofreadpage_tests.rst
R docs/tests_ref/protectbot_tests.rst
R docs/tests_ref/pwb.print_env.rst
R docs/tests_ref/pwb.print_locals.rst
R docs/tests_ref/pwb.print_unicode.rst
R docs/tests_ref/pwb.rst
R docs/tests_ref/pwb_tests.rst
R docs/tests_ref/redirect_bot_tests.rst
R docs/tests_ref/reflinks_tests.rst
R docs/tests_ref/replacebot_tests.rst
R docs/tests_ref/script_tests.rst
R docs/tests_ref/site_detect_tests.rst
R docs/tests_ref/site_tests.rst
R docs/tests_ref/sparql_tests.rst
R docs/tests_ref/template_bot_tests.rst
R docs/tests_ref/tests_tests.rst
R docs/tests_ref/textlib_tests.rst
R docs/tests_ref/thanks_tests.rst
R docs/tests_ref/thread_tests.rst
R docs/tests_ref/timestamp_tests.rst
R docs/tests_ref/timestripper_tests.rst
R docs/tests_ref/tk_tests.rst
R docs/tests_ref/tools_chars_tests.rst
R docs/tests_ref/tools_formatter_tests.rst
R docs/tests_ref/tools_tests.rst
R docs/tests_ref/ui_options_tests.rst
R docs/tests_ref/ui_tests.rst
R docs/tests_ref/upload_tests.rst
R docs/tests_ref/uploadbot_tests.rst
R docs/tests_ref/user_tests.rst
R docs/tests_ref/utils.rst
R docs/tests_ref/weblinkchecker_tests.rst
R docs/tests_ref/wikibase_edit_tests.rst
R docs/tests_ref/wikibase_tests.rst
R docs/tests_ref/wikistats_tests.rst
R docs/tests_ref/xmlreader_tests.rst
M tests/README.rst
102 files changed, 50 insertions(+), 120 deletions(-)
diff --git a/docs/api_ref/tests/basepage_tests.rst b/docs/api_ref/tests/basepage_tests.rst
deleted file mode 100644
index e1be084..0000000
--- a/docs/api_ref/tests/basepage_tests.rst
+++ /dev/null
@@ -1,7 +0,0 @@
-tests.basepage\_tests module
-============================
-
-.. automodule:: tests.basepage_tests
- :members:
- :undoc-members:
- :show-inheritance:
diff --git a/docs/api_ref/tests/disambredir_tests.rst b/docs/api_ref/tests/disambredir_tests.rst
deleted file mode 100644
index a9223ee..0000000
--- a/docs/api_ref/tests/disambredir_tests.rst
+++ /dev/null
@@ -1,7 +0,0 @@
-tests.disambredir\_tests module
-===============================
-
-.. automodule:: tests.disambredir_tests
- :members:
- :undoc-members:
- :show-inheritance:
diff --git a/docs/api_ref/tests/exceptions_tests.rst b/docs/api_ref/tests/exceptions_tests.rst
deleted file mode 100644
index c85b34f..0000000
--- a/docs/api_ref/tests/exceptions_tests.rst
+++ /dev/null
@@ -1,7 +0,0 @@
-tests.exceptions\_tests module
-==============================
-
-.. automodule:: tests.exceptions_tests
- :members:
- :undoc-members:
- :show-inheritance:
diff --git a/docs/api_ref/tests/generate_family_files_tests.rst b/docs/api_ref/tests/generate_family_files_tests.rst
deleted file mode 100644
index d72df15..0000000
--- a/docs/api_ref/tests/generate_family_files_tests.rst
+++ /dev/null
@@ -1,7 +0,0 @@
-tests.generate\_family\_files\_tests module
-===========================================
-
-.. automodule:: tests.generate_family_files_tests
- :members:
- :undoc-members:
- :show-inheritance:
diff --git a/docs/api_ref/tests/i18n.pywikibot.rst b/docs/api_ref/tests/i18n.pywikibot.rst
deleted file mode 100644
index 690a45f..0000000
--- a/docs/api_ref/tests/i18n.pywikibot.rst
+++ /dev/null
@@ -1,7 +0,0 @@
-tests.i18n.pywikibot module
-===========================
-
-.. automodule:: tests.i18n.pywikibot
- :members:
- :undoc-members:
- :show-inheritance:
diff --git a/docs/api_ref/tests/imagecopy_tests.rst b/docs/api_ref/tests/imagecopy_tests.rst
deleted file mode 100644
index c977e2b..0000000
--- a/docs/api_ref/tests/imagecopy_tests.rst
+++ /dev/null
@@ -1,7 +0,0 @@
-tests.imagecopy\_tests module
-=============================
-
-.. automodule:: tests.imagecopy_tests
- :members:
- :undoc-members:
- :show-inheritance:
diff --git a/docs/api_ref/tests/isbn_tests.rst b/docs/api_ref/tests/isbn_tests.rst
deleted file mode 100644
index a132ab8..0000000
--- a/docs/api_ref/tests/isbn_tests.rst
+++ /dev/null
@@ -1,7 +0,0 @@
-tests.isbn\_tests module
-========================
-
-.. automodule:: tests.isbn_tests
- :members:
- :undoc-members:
- :show-inheritance:
diff --git a/docs/api_ref/tests/logentry_tests.rst b/docs/api_ref/tests/logentry_tests.rst
deleted file mode 100644
index dc008f1..0000000
--- a/docs/api_ref/tests/logentry_tests.rst
+++ /dev/null
@@ -1,7 +0,0 @@
-tests.logentry\_tests module
-============================
-
-.. automodule:: tests.logentry_tests
- :members:
- :undoc-members:
- :show-inheritance:
diff --git a/docs/api_ref/tests/python_tests.rst b/docs/api_ref/tests/python_tests.rst
deleted file mode 100644
index e91ca8e..0000000
--- a/docs/api_ref/tests/python_tests.rst
+++ /dev/null
@@ -1,7 +0,0 @@
-tests.python\_tests module
-==========================
-
-.. automodule:: tests.python_tests
- :members:
- :undoc-members:
- :show-inheritance:
diff --git a/docs/api_ref/tests/tools_ip_tests.rst b/docs/api_ref/tests/tools_ip_tests.rst
deleted file mode 100644
index 8a71ca2..0000000
--- a/docs/api_ref/tests/tools_ip_tests.rst
+++ /dev/null
@@ -1,7 +0,0 @@
-tests.tools\_ip\_tests module
-=============================
-
-.. automodule:: tests.tools_ip_tests
- :members:
- :undoc-members:
- :show-inheritance:
diff --git a/docs/api_ref/tests/weblib_tests.rst b/docs/api_ref/tests/weblib_tests.rst
deleted file mode 100644
index 80247c2..0000000
--- a/docs/api_ref/tests/weblib_tests.rst
+++ /dev/null
@@ -1,7 +0,0 @@
-tests.weblib\_tests module
-==========================
-
-.. automodule:: tests.weblib_tests
- :members:
- :undoc-members:
- :show-inheritance:
diff --git a/docs/index.rst b/docs/index.rst
index 927ad30..3dbd2e9 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -65,9 +65,10 @@
.. toctree::
:maxdepth: 1
- utilities/scripts_ref
- scripts_ref/scripts.maintenance
+ Utility Scripts Reference<utilities/scripts_ref>
scripts_ref/index
+ tests_ref/index
+ Maintenance Scripts<scripts_ref/scripts.maintenance>
Miscellaneous
diff --git a/docs/scripts_ref/index.rst b/docs/scripts_ref/index.rst
index 3c14b01..0e32244 100644
--- a/docs/scripts_ref/index.rst
+++ b/docs/scripts_ref/index.rst
@@ -1,4 +1,4 @@
-Scripts reference
+Scripts Reference
-----------------
Provided scripts by Pywikibot
diff --git a/docs/api_ref/tests/add_text_tests.rst b/docs/tests_ref/add_text_tests.rst
similarity index 100%
rename from docs/api_ref/tests/add_text_tests.rst
rename to docs/tests_ref/add_text_tests.rst
diff --git a/docs/api_ref/tests/api_tests.rst b/docs/tests_ref/api_tests.rst
similarity index 100%
rename from docs/api_ref/tests/api_tests.rst
rename to docs/tests_ref/api_tests.rst
diff --git a/docs/api_ref/tests/archivebot_tests.rst b/docs/tests_ref/archivebot_tests.rst
similarity index 100%
rename from docs/api_ref/tests/archivebot_tests.rst
rename to docs/tests_ref/archivebot_tests.rst
diff --git a/docs/api_ref/tests/aspects.rst b/docs/tests_ref/aspects.rst
similarity index 100%
rename from docs/api_ref/tests/aspects.rst
rename to docs/tests_ref/aspects.rst
diff --git a/docs/tests_ref/basepage.rst b/docs/tests_ref/basepage.rst
new file mode 100644
index 0000000..65346bf
--- /dev/null
+++ b/docs/tests_ref/basepage.rst
@@ -0,0 +1,7 @@
+tests.basepage module
+=====================
+
+.. automodule:: tests.basepage
+ :members:
+ :undoc-members:
+ :show-inheritance:
diff --git a/docs/api_ref/tests/bot_tests.rst b/docs/tests_ref/bot_tests.rst
similarity index 100%
rename from docs/api_ref/tests/bot_tests.rst
rename to docs/tests_ref/bot_tests.rst
diff --git a/docs/api_ref/tests/cache_tests.rst b/docs/tests_ref/cache_tests.rst
similarity index 100%
rename from docs/api_ref/tests/cache_tests.rst
rename to docs/tests_ref/cache_tests.rst
diff --git a/docs/api_ref/tests/category_bot_tests.rst b/docs/tests_ref/category_bot_tests.rst
similarity index 100%
rename from docs/api_ref/tests/category_bot_tests.rst
rename to docs/tests_ref/category_bot_tests.rst
diff --git a/docs/api_ref/tests/category_tests.rst b/docs/tests_ref/category_tests.rst
similarity index 100%
rename from docs/api_ref/tests/category_tests.rst
rename to docs/tests_ref/category_tests.rst
diff --git a/docs/api_ref/tests/checkimages_tests.rst b/docs/tests_ref/checkimages_tests.rst
similarity index 100%
rename from docs/api_ref/tests/checkimages_tests.rst
rename to docs/tests_ref/checkimages_tests.rst
diff --git a/docs/api_ref/tests/conftest.rst b/docs/tests_ref/conftest.rst
similarity index 100%
rename from docs/api_ref/tests/conftest.rst
rename to docs/tests_ref/conftest.rst
diff --git a/docs/api_ref/tests/cosmetic_changes_tests.rst b/docs/tests_ref/cosmetic_changes_tests.rst
similarity index 100%
rename from docs/api_ref/tests/cosmetic_changes_tests.rst
rename to docs/tests_ref/cosmetic_changes_tests.rst
diff --git a/docs/api_ref/tests/data_ingestion_tests.rst b/docs/tests_ref/data_ingestion_tests.rst
similarity index 100%
rename from docs/api_ref/tests/data_ingestion_tests.rst
rename to docs/tests_ref/data_ingestion_tests.rst
diff --git a/docs/api_ref/tests/date_tests.rst b/docs/tests_ref/date_tests.rst
similarity index 100%
rename from docs/api_ref/tests/date_tests.rst
rename to docs/tests_ref/date_tests.rst
diff --git a/docs/api_ref/tests/deletionbot_tests.rst b/docs/tests_ref/deletionbot_tests.rst
similarity index 100%
rename from docs/api_ref/tests/deletionbot_tests.rst
rename to docs/tests_ref/deletionbot_tests.rst
diff --git a/docs/api_ref/tests/deprecation_tests.rst b/docs/tests_ref/deprecation_tests.rst
similarity index 100%
rename from docs/api_ref/tests/deprecation_tests.rst
rename to docs/tests_ref/deprecation_tests.rst
diff --git a/docs/api_ref/tests/diff_tests.rst b/docs/tests_ref/diff_tests.rst
similarity index 100%
rename from docs/api_ref/tests/diff_tests.rst
rename to docs/tests_ref/diff_tests.rst
diff --git a/docs/api_ref/tests/djvu_tests.rst b/docs/tests_ref/djvu_tests.rst
similarity index 100%
rename from docs/api_ref/tests/djvu_tests.rst
rename to docs/tests_ref/djvu_tests.rst
diff --git a/docs/api_ref/tests/dry_api_tests.rst b/docs/tests_ref/dry_api_tests.rst
similarity index 100%
rename from docs/api_ref/tests/dry_api_tests.rst
rename to docs/tests_ref/dry_api_tests.rst
diff --git a/docs/api_ref/tests/dry_site_tests.rst b/docs/tests_ref/dry_site_tests.rst
similarity index 100%
rename from docs/api_ref/tests/dry_site_tests.rst
rename to docs/tests_ref/dry_site_tests.rst
diff --git a/docs/api_ref/tests/edit_failure_tests.rst b/docs/tests_ref/edit_failure_tests.rst
similarity index 100%
rename from docs/api_ref/tests/edit_failure_tests.rst
rename to docs/tests_ref/edit_failure_tests.rst
diff --git a/docs/api_ref/tests/edit_tests.rst b/docs/tests_ref/edit_tests.rst
similarity index 100%
rename from docs/api_ref/tests/edit_tests.rst
rename to docs/tests_ref/edit_tests.rst
diff --git a/docs/api_ref/tests/eventstreams_tests.rst b/docs/tests_ref/eventstreams_tests.rst
similarity index 100%
rename from docs/api_ref/tests/eventstreams_tests.rst
rename to docs/tests_ref/eventstreams_tests.rst
diff --git a/docs/api_ref/tests/family_tests.rst b/docs/tests_ref/family_tests.rst
similarity index 100%
rename from docs/api_ref/tests/family_tests.rst
rename to docs/tests_ref/family_tests.rst
diff --git a/docs/api_ref/tests/file_tests.rst b/docs/tests_ref/file_tests.rst
similarity index 100%
rename from docs/api_ref/tests/file_tests.rst
rename to docs/tests_ref/file_tests.rst
diff --git a/docs/api_ref/tests/fixes_tests.rst b/docs/tests_ref/fixes_tests.rst
similarity index 100%
rename from docs/api_ref/tests/fixes_tests.rst
rename to docs/tests_ref/fixes_tests.rst
diff --git a/docs/api_ref/tests/fixing_redirects_tests.rst b/docs/tests_ref/fixing_redirects_tests.rst
similarity index 100%
rename from docs/api_ref/tests/fixing_redirects_tests.rst
rename to docs/tests_ref/fixing_redirects_tests.rst
diff --git a/docs/api_ref/tests/flow_edit_tests.rst b/docs/tests_ref/flow_edit_tests.rst
similarity index 100%
rename from docs/api_ref/tests/flow_edit_tests.rst
rename to docs/tests_ref/flow_edit_tests.rst
diff --git a/docs/api_ref/tests/flow_tests.rst b/docs/tests_ref/flow_tests.rst
similarity index 100%
rename from docs/api_ref/tests/flow_tests.rst
rename to docs/tests_ref/flow_tests.rst
diff --git a/docs/api_ref/tests/flow_thanks_tests.rst b/docs/tests_ref/flow_thanks_tests.rst
similarity index 100%
rename from docs/api_ref/tests/flow_thanks_tests.rst
rename to docs/tests_ref/flow_thanks_tests.rst
diff --git a/docs/tests_ref/generate_family_file_tests.rst b/docs/tests_ref/generate_family_file_tests.rst
new file mode 100644
index 0000000..5dbd7ee
--- /dev/null
+++ b/docs/tests_ref/generate_family_file_tests.rst
@@ -0,0 +1,7 @@
+tests.generate\_family\_file\_tests module
+==========================================
+
+.. automodule:: tests.generate_family_file_tests
+ :members:
+ :undoc-members:
+ :show-inheritance:
diff --git a/docs/api_ref/tests/generate_user_files_tests.rst b/docs/tests_ref/generate_user_files_tests.rst
similarity index 100%
rename from docs/api_ref/tests/generate_user_files_tests.rst
rename to docs/tests_ref/generate_user_files_tests.rst
diff --git a/docs/api_ref/tests/http_tests.rst b/docs/tests_ref/http_tests.rst
similarity index 100%
rename from docs/api_ref/tests/http_tests.rst
rename to docs/tests_ref/http_tests.rst
diff --git a/docs/api_ref/tests/i18n.rst b/docs/tests_ref/i18n.rst
similarity index 69%
rename from docs/api_ref/tests/i18n.rst
rename to docs/tests_ref/i18n.rst
index 9d620ed..bd7c82c 100644
--- a/docs/api_ref/tests/i18n.rst
+++ b/docs/tests_ref/i18n.rst
@@ -6,10 +6,4 @@
:undoc-members:
:show-inheritance:
-Submodules
-----------
-
-.. toctree::
-
- i18n.pywikibot
diff --git a/docs/api_ref/tests/i18n_tests.rst b/docs/tests_ref/i18n_tests.rst
similarity index 100%
rename from docs/api_ref/tests/i18n_tests.rst
rename to docs/tests_ref/i18n_tests.rst
diff --git a/docs/api_ref/tests/index.rst b/docs/tests_ref/index.rst
similarity index 86%
rename from docs/api_ref/tests/index.rst
rename to docs/tests_ref/index.rst
index ea77f14..4e30565 100644
--- a/docs/api_ref/tests/index.rst
+++ b/docs/tests_ref/index.rst
@@ -1,15 +1,21 @@
-===========
+===============
+Tests Reference
+===============
+
+.. include:: ../../tests/README.rst
+
+***********
Subpackages
-===========
+***********
.. toctree::
i18n
pwb
-=============
+*************
Library tests
-=============
+*************
Tests in this project:
@@ -18,7 +24,7 @@
api<./api_tests>
aspects
- basepage<./basepage_tests>
+ basepage
bot<./bot_tests>
cache<./cache_tests>
category<./category_tests>
@@ -33,7 +39,6 @@
edit_failure<./edit_failure_tests>
edit<./edit_tests>
eventstreams<./eventstreams_tests>
- exceptions<./exceptions_tests>
family<./family_tests>
file<./file_tests>
fixes<./fixes_tests>
@@ -46,7 +51,7 @@
interwiki_link<./interwiki_link_tests>
l10n<./l10n_tests>
link<./link_tests>
- logentry<./logentry_tests>
+ logentries<./logentries_tests>
login<./login_tests>
mediawikiversion<./mediawikiversion_tests>
namespace<./namespace_tests>
@@ -56,7 +61,6 @@
paraminfo<./paraminfo_tests>
plural<./plural_tests>
proofreadpage<./proofreadpage_tests>
- python<./python_tests>
site_detect<./site_detect_tests>
site<./site_tests>
sparql<./sparql_tests>
@@ -69,21 +73,19 @@
tk<./tk_tests>
tools_chars<./tools_chars_tests>
tools_formatter<./tools_formatter_tests>
- tools_ip<./tools_ip_tests>
tools<./tools_tests>
ui_options<./ui_options_tests>
ui<./ui_tests>
user<./user_tests>
utils
- weblib<./weblib_tests>
wikibase_edit<./wikibase_edit_tests>
wikibase<./wikibase_tests>
wikistats<./wikistats_tests>
xmlreader<./xmlreader_tests>
-============
+************
Script tests
-============
+************
Tests in this project:
@@ -96,13 +98,10 @@
checkimages<./checkimages_tests>
data_ingestion<./data_ingestion_tests>
deletionbot<./deletionbot_tests>
- disambredir<./disambredir_tests>
fixing_redirects<./fixing_redirects_tests>
- generate_family_files<./generate_family_files_tests>
+ generate_family_file<./generate_family_file_tests>
generate_user_files<./generate_user_files_tests>
- imagecopy<./imagecopy_tests>
interwikidata<./interwikidata_tests>
- isbn<./isbn_tests>
noreferences<./noreferences_tests>
patrolbot<./patrolbot_tests>
protectbot<./protectbot_tests>
diff --git a/docs/api_ref/tests/interwiki_graph_tests.rst b/docs/tests_ref/interwiki_graph_tests.rst
similarity index 100%
rename from docs/api_ref/tests/interwiki_graph_tests.rst
rename to docs/tests_ref/interwiki_graph_tests.rst
diff --git a/docs/api_ref/tests/interwiki_link_tests.rst b/docs/tests_ref/interwiki_link_tests.rst
similarity index 100%
rename from docs/api_ref/tests/interwiki_link_tests.rst
rename to docs/tests_ref/interwiki_link_tests.rst
diff --git a/docs/api_ref/tests/interwikidata_tests.rst b/docs/tests_ref/interwikidata_tests.rst
similarity index 100%
rename from docs/api_ref/tests/interwikidata_tests.rst
rename to docs/tests_ref/interwikidata_tests.rst
diff --git a/docs/api_ref/tests/l10n_tests.rst b/docs/tests_ref/l10n_tests.rst
similarity index 100%
rename from docs/api_ref/tests/l10n_tests.rst
rename to docs/tests_ref/l10n_tests.rst
diff --git a/docs/api_ref/tests/link_tests.rst b/docs/tests_ref/link_tests.rst
similarity index 100%
rename from docs/api_ref/tests/link_tests.rst
rename to docs/tests_ref/link_tests.rst
diff --git a/docs/tests_ref/logentries_tests.rst b/docs/tests_ref/logentries_tests.rst
new file mode 100644
index 0000000..411bd7e
--- /dev/null
+++ b/docs/tests_ref/logentries_tests.rst
@@ -0,0 +1,7 @@
+tests.logentries\_tests module
+==============================
+
+.. automodule:: tests.logentries_tests
+ :members:
+ :undoc-members:
+ :show-inheritance:
diff --git a/docs/api_ref/tests/login_tests.rst b/docs/tests_ref/login_tests.rst
similarity index 100%
rename from docs/api_ref/tests/login_tests.rst
rename to docs/tests_ref/login_tests.rst
diff --git a/docs/api_ref/tests/mediawikiversion_tests.rst b/docs/tests_ref/mediawikiversion_tests.rst
similarity index 100%
rename from docs/api_ref/tests/mediawikiversion_tests.rst
rename to docs/tests_ref/mediawikiversion_tests.rst
diff --git a/docs/api_ref/tests/namespace_tests.rst b/docs/tests_ref/namespace_tests.rst
similarity index 100%
rename from docs/api_ref/tests/namespace_tests.rst
rename to docs/tests_ref/namespace_tests.rst
diff --git a/docs/api_ref/tests/noreferences_tests.rst b/docs/tests_ref/noreferences_tests.rst
similarity index 100%
rename from docs/api_ref/tests/noreferences_tests.rst
rename to docs/tests_ref/noreferences_tests.rst
diff --git a/docs/api_ref/tests/oauth_tests.rst b/docs/tests_ref/oauth_tests.rst
similarity index 100%
rename from docs/api_ref/tests/oauth_tests.rst
rename to docs/tests_ref/oauth_tests.rst
diff --git a/docs/api_ref/tests/page_tests.rst b/docs/tests_ref/page_tests.rst
similarity index 100%
rename from docs/api_ref/tests/page_tests.rst
rename to docs/tests_ref/page_tests.rst
diff --git a/docs/api_ref/tests/pagegenerators_tests.rst b/docs/tests_ref/pagegenerators_tests.rst
similarity index 100%
rename from docs/api_ref/tests/pagegenerators_tests.rst
rename to docs/tests_ref/pagegenerators_tests.rst
diff --git a/docs/api_ref/tests/paraminfo_tests.rst b/docs/tests_ref/paraminfo_tests.rst
similarity index 100%
rename from docs/api_ref/tests/paraminfo_tests.rst
rename to docs/tests_ref/paraminfo_tests.rst
diff --git a/docs/api_ref/tests/patrolbot_tests.rst b/docs/tests_ref/patrolbot_tests.rst
similarity index 100%
rename from docs/api_ref/tests/patrolbot_tests.rst
rename to docs/tests_ref/patrolbot_tests.rst
diff --git a/docs/api_ref/tests/plural_tests.rst b/docs/tests_ref/plural_tests.rst
similarity index 100%
rename from docs/api_ref/tests/plural_tests.rst
rename to docs/tests_ref/plural_tests.rst
diff --git a/docs/api_ref/tests/proofreadpage_tests.rst b/docs/tests_ref/proofreadpage_tests.rst
similarity index 100%
rename from docs/api_ref/tests/proofreadpage_tests.rst
rename to docs/tests_ref/proofreadpage_tests.rst
diff --git a/docs/api_ref/tests/protectbot_tests.rst b/docs/tests_ref/protectbot_tests.rst
similarity index 100%
rename from docs/api_ref/tests/protectbot_tests.rst
rename to docs/tests_ref/protectbot_tests.rst
diff --git a/docs/api_ref/tests/pwb.print_env.rst b/docs/tests_ref/pwb.print_env.rst
similarity index 100%
rename from docs/api_ref/tests/pwb.print_env.rst
rename to docs/tests_ref/pwb.print_env.rst
diff --git a/docs/api_ref/tests/pwb.print_locals.rst b/docs/tests_ref/pwb.print_locals.rst
similarity index 100%
rename from docs/api_ref/tests/pwb.print_locals.rst
rename to docs/tests_ref/pwb.print_locals.rst
diff --git a/docs/api_ref/tests/pwb.print_unicode.rst b/docs/tests_ref/pwb.print_unicode.rst
similarity index 100%
rename from docs/api_ref/tests/pwb.print_unicode.rst
rename to docs/tests_ref/pwb.print_unicode.rst
diff --git a/docs/api_ref/tests/pwb.rst b/docs/tests_ref/pwb.rst
similarity index 100%
rename from docs/api_ref/tests/pwb.rst
rename to docs/tests_ref/pwb.rst
diff --git a/docs/api_ref/tests/pwb_tests.rst b/docs/tests_ref/pwb_tests.rst
similarity index 100%
rename from docs/api_ref/tests/pwb_tests.rst
rename to docs/tests_ref/pwb_tests.rst
diff --git a/docs/api_ref/tests/redirect_bot_tests.rst b/docs/tests_ref/redirect_bot_tests.rst
similarity index 100%
rename from docs/api_ref/tests/redirect_bot_tests.rst
rename to docs/tests_ref/redirect_bot_tests.rst
diff --git a/docs/api_ref/tests/reflinks_tests.rst b/docs/tests_ref/reflinks_tests.rst
similarity index 100%
rename from docs/api_ref/tests/reflinks_tests.rst
rename to docs/tests_ref/reflinks_tests.rst
diff --git a/docs/api_ref/tests/replacebot_tests.rst b/docs/tests_ref/replacebot_tests.rst
similarity index 100%
rename from docs/api_ref/tests/replacebot_tests.rst
rename to docs/tests_ref/replacebot_tests.rst
diff --git a/docs/api_ref/tests/script_tests.rst b/docs/tests_ref/script_tests.rst
similarity index 100%
rename from docs/api_ref/tests/script_tests.rst
rename to docs/tests_ref/script_tests.rst
diff --git a/docs/api_ref/tests/site_detect_tests.rst b/docs/tests_ref/site_detect_tests.rst
similarity index 100%
rename from docs/api_ref/tests/site_detect_tests.rst
rename to docs/tests_ref/site_detect_tests.rst
diff --git a/docs/api_ref/tests/site_tests.rst b/docs/tests_ref/site_tests.rst
similarity index 100%
rename from docs/api_ref/tests/site_tests.rst
rename to docs/tests_ref/site_tests.rst
diff --git a/docs/api_ref/tests/sparql_tests.rst b/docs/tests_ref/sparql_tests.rst
similarity index 100%
rename from docs/api_ref/tests/sparql_tests.rst
rename to docs/tests_ref/sparql_tests.rst
diff --git a/docs/api_ref/tests/template_bot_tests.rst b/docs/tests_ref/template_bot_tests.rst
similarity index 100%
rename from docs/api_ref/tests/template_bot_tests.rst
rename to docs/tests_ref/template_bot_tests.rst
diff --git a/docs/api_ref/tests/tests_tests.rst b/docs/tests_ref/tests_tests.rst
similarity index 100%
rename from docs/api_ref/tests/tests_tests.rst
rename to docs/tests_ref/tests_tests.rst
diff --git a/docs/api_ref/tests/textlib_tests.rst b/docs/tests_ref/textlib_tests.rst
similarity index 100%
rename from docs/api_ref/tests/textlib_tests.rst
rename to docs/tests_ref/textlib_tests.rst
diff --git a/docs/api_ref/tests/thanks_tests.rst b/docs/tests_ref/thanks_tests.rst
similarity index 100%
rename from docs/api_ref/tests/thanks_tests.rst
rename to docs/tests_ref/thanks_tests.rst
diff --git a/docs/api_ref/tests/thread_tests.rst b/docs/tests_ref/thread_tests.rst
similarity index 100%
rename from docs/api_ref/tests/thread_tests.rst
rename to docs/tests_ref/thread_tests.rst
diff --git a/docs/api_ref/tests/timestamp_tests.rst b/docs/tests_ref/timestamp_tests.rst
similarity index 100%
rename from docs/api_ref/tests/timestamp_tests.rst
rename to docs/tests_ref/timestamp_tests.rst
diff --git a/docs/api_ref/tests/timestripper_tests.rst b/docs/tests_ref/timestripper_tests.rst
similarity index 100%
rename from docs/api_ref/tests/timestripper_tests.rst
rename to docs/tests_ref/timestripper_tests.rst
diff --git a/docs/api_ref/tests/tk_tests.rst b/docs/tests_ref/tk_tests.rst
similarity index 100%
rename from docs/api_ref/tests/tk_tests.rst
rename to docs/tests_ref/tk_tests.rst
diff --git a/docs/api_ref/tests/tools_chars_tests.rst b/docs/tests_ref/tools_chars_tests.rst
similarity index 100%
rename from docs/api_ref/tests/tools_chars_tests.rst
rename to docs/tests_ref/tools_chars_tests.rst
diff --git a/docs/api_ref/tests/tools_formatter_tests.rst b/docs/tests_ref/tools_formatter_tests.rst
similarity index 100%
rename from docs/api_ref/tests/tools_formatter_tests.rst
rename to docs/tests_ref/tools_formatter_tests.rst
diff --git a/docs/api_ref/tests/tools_tests.rst b/docs/tests_ref/tools_tests.rst
similarity index 100%
rename from docs/api_ref/tests/tools_tests.rst
rename to docs/tests_ref/tools_tests.rst
diff --git a/docs/api_ref/tests/ui_options_tests.rst b/docs/tests_ref/ui_options_tests.rst
similarity index 100%
rename from docs/api_ref/tests/ui_options_tests.rst
rename to docs/tests_ref/ui_options_tests.rst
diff --git a/docs/api_ref/tests/ui_tests.rst b/docs/tests_ref/ui_tests.rst
similarity index 100%
rename from docs/api_ref/tests/ui_tests.rst
rename to docs/tests_ref/ui_tests.rst
diff --git a/docs/api_ref/tests/upload_tests.rst b/docs/tests_ref/upload_tests.rst
similarity index 100%
rename from docs/api_ref/tests/upload_tests.rst
rename to docs/tests_ref/upload_tests.rst
diff --git a/docs/api_ref/tests/uploadbot_tests.rst b/docs/tests_ref/uploadbot_tests.rst
similarity index 100%
rename from docs/api_ref/tests/uploadbot_tests.rst
rename to docs/tests_ref/uploadbot_tests.rst
diff --git a/docs/api_ref/tests/user_tests.rst b/docs/tests_ref/user_tests.rst
similarity index 100%
rename from docs/api_ref/tests/user_tests.rst
rename to docs/tests_ref/user_tests.rst
diff --git a/docs/api_ref/tests/utils.rst b/docs/tests_ref/utils.rst
similarity index 100%
rename from docs/api_ref/tests/utils.rst
rename to docs/tests_ref/utils.rst
diff --git a/docs/api_ref/tests/weblinkchecker_tests.rst b/docs/tests_ref/weblinkchecker_tests.rst
similarity index 100%
rename from docs/api_ref/tests/weblinkchecker_tests.rst
rename to docs/tests_ref/weblinkchecker_tests.rst
diff --git a/docs/api_ref/tests/wikibase_edit_tests.rst b/docs/tests_ref/wikibase_edit_tests.rst
similarity index 100%
rename from docs/api_ref/tests/wikibase_edit_tests.rst
rename to docs/tests_ref/wikibase_edit_tests.rst
diff --git a/docs/api_ref/tests/wikibase_tests.rst b/docs/tests_ref/wikibase_tests.rst
similarity index 100%
rename from docs/api_ref/tests/wikibase_tests.rst
rename to docs/tests_ref/wikibase_tests.rst
diff --git a/docs/api_ref/tests/wikistats_tests.rst b/docs/tests_ref/wikistats_tests.rst
similarity index 100%
rename from docs/api_ref/tests/wikistats_tests.rst
rename to docs/tests_ref/wikistats_tests.rst
diff --git a/docs/api_ref/tests/xmlreader_tests.rst b/docs/tests_ref/xmlreader_tests.rst
similarity index 100%
rename from docs/api_ref/tests/xmlreader_tests.rst
rename to docs/tests_ref/xmlreader_tests.rst
diff --git a/tests/README.rst b/tests/README.rst
index f4ec38e..9e5e5ee 100644
--- a/tests/README.rst
+++ b/tests/README.rst
@@ -1,6 +1,6 @@
-===============
+***************
Pywikibot tests
-===============
+***************
The Pywikibot tests are based on the `unittest framework
<https://docs.python.org/3/library/unittest.html>`_.
@@ -22,8 +22,7 @@
The entire suite of tests may be run in the following ways from the root directory:
-setup.py
-~~~~~~~~
+**setup.py**
::
@@ -31,22 +30,19 @@
pip install pytest-runner
python setup.py pytest
-Module unittest
-~~~~~~~~~~~~~~~
+**Module unittest**
::
python -m unittest discover -v -p "*_tests.py"
-pytest
-~~~~~~
+**pytest**
::
py.test
-tox
-~~~
+**tox**
::
@@ -59,24 +55,21 @@
With -lang and -family or -site options pwb can be used to specify a site.
-unittest
-~~~~~~~~
+**unittest**
::
python -m unittest -v tests.api_tests tests.site_tests
python -m unittest -v tests.api_tests.TestParamInfo.test_init
-pytest
-~~~~~~
+**pytest**
::
py.test -s -v tests/api_tests.py tests/site_tests.py
py.test -s -v tests/api_tests.py::TestParamInfo::test_init
-pwb
-~~~
+**pwb**
::
@@ -85,8 +78,7 @@
python pwb.py tests/api_tests -v TestParamInfo.test_init
python pwb.py -lang:de -family:wikipedia tests/page_tests -v TestPageObject
-env
-~~~
+**env**
::
To view, visit change 788457. To unsubscribe, or for help writing mail filters, visit settings.