Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
RickiJay-WMDE committed Oct 24, 2024
1 parent 0f66a4d commit 56a00dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
3 changes: 1 addition & 2 deletions fetch_data/soup_data/software/get_update_software_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ async def compile_data_from_url(
ext.archived = archived or page_archived
if page_archived:
permanent_link_tag = soup.find(
"a",
string="To see the page before archival, click here.",
"a", string="To see the page before archival, click here."
)
return await compile_data_from_url(
async_session,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ def mockery(*args, **kwargs):
return MockResponse(query, 200, data.read())
case "https://www.mediawiki.org/wiki/Extension:WikibaseClient":
with open(
f"{DATA_DIRECTORY}/Mediawiki_WikibaseClient.html",
mode="rb",
f"{DATA_DIRECTORY}/Mediawiki_WikibaseClient.html", mode="rb"
) as data:
return MockResponse(
"https://www.mediawiki.org/wiki/Extension:Wikibase_Client",
Expand All @@ -83,14 +82,12 @@ def mockery(*args, **kwargs):
)
case "https://www.mediawiki.org/wiki/Extension:WikibaseLib":
with open(
f"{DATA_DIRECTORY}/Mediawiki_WikibaseLib.html",
mode="rb",
f"{DATA_DIRECTORY}/Mediawiki_WikibaseLib.html", mode="rb"
) as data:
return MockResponse(query, 200, data.read())
case "https://www.mediawiki.org/wiki/Extension:WikibaseRepository":
with open(
f"{DATA_DIRECTORY}/Mediawiki_WikibaseRepository.html",
mode="rb",
f"{DATA_DIRECTORY}/Mediawiki_WikibaseRepository.html", mode="rb"
) as data:
return MockResponse(
"https://www.mediawiki.org/wiki/Extension:Wikibase_Repository",
Expand All @@ -99,14 +96,12 @@ def mockery(*args, **kwargs):
)
case "https://www.mediawiki.org/wiki/Extension:WikibaseView":
with open(
f"{DATA_DIRECTORY}/Mediawiki_WikibaseView.html",
mode="rb",
f"{DATA_DIRECTORY}/Mediawiki_WikibaseView.html", mode="rb"
) as data:
return MockResponse(query, 200, data.read())
case "https://www.mediawiki.org/wiki/Special:PermanentLink/3981869":
with open(
f"{DATA_DIRECTORY}/Mediawiki_WikibaseLib_Archived.html",
mode="rb",
f"{DATA_DIRECTORY}/Mediawiki_WikibaseLib_Archived.html", mode="rb"
) as data:
return MockResponse(
"https://www.mediawiki.org/w/index.php?oldid=3981869",
Expand Down

0 comments on commit 56a00dc

Please sign in to comment.