Skip to content

Commit

Permalink
fix repr test
Browse files Browse the repository at this point in the history
  • Loading branch information
barrust committed Oct 31, 2024
1 parent 27f550d commit 1a73a14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/mediawiki_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
MediaWikiPage,
PageError,
RedirectError,
__version__,
)
from tests.utilities import FunctionUseCounter, find_depth

Expand Down Expand Up @@ -169,10 +170,9 @@ def test_repr_function(self):
site = MediaWikiOverloaded()
res = (
"Configuration(api_url=https://en.wikipedia.org/w/api.php, category_prefix=Category, "
"http_auth=None, "
"lang=en, password=None, proxies=None, rate_limit=False, rate_limit_min_wait=0:00:00.050000, "
"http_auth=None, lang=en, password=None, proxies=None, rate_limit=False, rate_limit_min_wait=0:00:00.050000, "
"refresh_interval=None, timeout=15.0, use_cache=True, "
"user_agent=python-mediawiki/VERSION-0.7.4/(https://github.com/barrust/mediawiki)/BOT, username=None, verify_ssl=True)"
f"user_agent=python-mediawiki/VERSION-{__version__}/(https://github.com/barrust/mediawiki)/BOT, username=None, verify_ssl=True)"
)
print(str(site._config))
self.assertEqual(str(site._config), res)
Expand Down Expand Up @@ -276,7 +276,7 @@ def test_default_http_auth(self):
self.assertIs(site.http_auth, None)
self.assertIs(site._session.auth, None)

def test_init_user_agent(self):
def test_init_http_auth(self):
"""test initializing the HTTP authenticator"""
auth_func = lambda http_request: http_request
site = MediaWikiOverloaded(http_auth=auth_func)
Expand Down

0 comments on commit 1a73a14

Please sign in to comment.