Skip to content

Commit

Permalink
Fix failing test, and other cleanups (#245)
Browse files Browse the repository at this point in the history
Fixes failing test in #240
  • Loading branch information
robkam authored Sep 23, 2024
1 parent ba9d181 commit 701c6e4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion INSTALLATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ poetry update && poetry install && poetry build
```
```bash
pip3 install --force-reinstall dist/*.whl
pip install --force-reinstall dist/*.whl
```
<details>
Expand Down
4 changes: 2 additions & 2 deletions wikiteam3/dumpgenerator/dump/misc/site_info_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@


def test_mediawiki_version_match():
with get_config("1.39.6") as config:
with get_config("1.39.7") as config:
sess = requests.Session()
saveSiteInfo(config, sess)
with open(f"{config.path}/siteinfo.json") as f:
siteInfoJson = json.load(f)
assert siteInfoJson["query"]["general"]["generator"] == "MediaWiki 1.39.6"
assert siteInfoJson["query"]["general"]["generator"] == "MediaWiki 1.39.7"
2 changes: 1 addition & 1 deletion wikiteam3/dumpgenerator/test/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def _new_config_from_parameter(params):

def get_config(mediawiki_ver, api=True):
assert api == True
if mediawiki_ver == "1.39.6":
if mediawiki_ver == "1.39.7":
return _new_config_from_parameter(
[
"--api",
Expand Down
2 changes: 1 addition & 1 deletion wikiteam3/utils/user_agent.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import requests

"""Return a cool user-agent to hide Python user-agent"""
# Return a cool user-agent to hide Python user-agent


def getUserAgent():
Expand Down

0 comments on commit 701c6e4

Please sign in to comment.