Skip to content

Commit

Permalink
Update and remove URLs in test (#227)
Browse files Browse the repository at this point in the history
I found some URLs in test file have redirect to non wiki URL so I update
and remove it for avoid unnecessary error when running check.
  • Loading branch information
sian1468 authored Dec 18, 2023
1 parent 4889a79 commit 265855d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions wikiteam3/dumpgenerator/dump/image/html_regexs_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ class TestRegexs:
class TestRegexsOnline:
listFiles_urls = {
# site-date: url , `limit=` for counting the number of matches
"group0.mediawiki.demo.save-web.org_mediawiki-1.16.5-20230701": "http://group0.mediawiki.demo.save-web.org/mediawiki-1.16.5/index.php?title=特殊:文件列表&limit=2",
"group2.mediawiki.demo.save-web.org_mediawiki-1.39.1-20230701": "http://group2.mediawiki.demo.save-web.org/mediawiki-1.39.1/index.php?title=Special:ListFiles&limit=1",
"archiveteam.org-20230701": "https://wiki.archiveteam.org/index.php?title=Special:ListFiles&sort=byname&limit=7",
"wiki.othing.xyz-20230701": "https://wiki.othing.xyz/index.php?title=Special:ListFiles&sort=byname",
"mediawiki.org-20230701": "https://www.mediawiki.org/w/index.php?title=Special:ListFiles&sort=byname&limit=7",
Expand Down
4 changes: 2 additions & 2 deletions wikiteam3/dumpgenerator/test/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ def _new_config_from_parameter(params):

def get_config(mediawiki_ver, api=True):
assert api == True
if mediawiki_ver == "1.16.5":
if mediawiki_ver == "1.39.5":
return _new_config_from_parameter(
[
"--api",
"http://group0.mediawiki.demo.save-web.org/mediawiki-1.16.5/api.php",
"https://testw.fandom.com/api.php",
]
)

0 comments on commit 265855d

Please sign in to comment.