Skip to content

Commit

Permalink
refactors for more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Sep 27, 2024
1 parent 33e69ef commit 63cfded
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/basetest.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def isInPublicCI():
"""
are we running in a public Continuous Integration Environment?
"""
return getpass.getuser() in ["travis", "runner"]
return getpass.getuser() in ["travis", "runner", "wf"]

def inPublicCI(self):
return BaseTest.isInPublicCI()
Expand Down
2 changes: 1 addition & 1 deletion wikibot3rd/wikibot.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __init__(
self.scheme = o.scheme
self.netloc = o.netloc
if self.debug:
print(f"netloc for famil {self.family} is {self.netloc}")
print(f"netloc for family {self.family} is {self.netloc}")
self.scriptPath = o.path + self.scriptPath
self.checkFamily()
if withLogin:
Expand Down
8 changes: 4 additions & 4 deletions wikibot3rd/wikiclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def ofWikiId(
return WikiClient.of_wiki_id(wiki_id, lenient=lenient, debug=debug)

@staticmethod
def of_wiki_user(wiki_user: WikiUser) -> "WikiClient":
def of_wiki_user(wiki_user: WikiUser,debug:bool=False) -> "WikiClient":
"""
Create a WikiClient instance from a WikiUser object.
Expand All @@ -256,10 +256,10 @@ def of_wiki_user(wiki_user: WikiUser) -> "WikiClient":
Returns:
WikiClient: A WikiClient instance for the given WikiUser.
"""
wikibot = WikiClient(wiki_user)
wikibot = WikiClient(wiki_user,debug=debug)
return wikibot

@staticmethod
def ofWikiUser(wiki_user: WikiUser) -> "WikiClient":
def ofWikiUser(wiki_user: WikiUser,debug:bool=False) -> "WikiClient":
"""Deprecated: Use of_wiki_user instead."""
return WikiClient.of_wiki_user(wiki_user)
return WikiClient.of_wiki_user(wiki_user,debug=debug)

0 comments on commit 63cfded

Please sign in to comment.