[pywikibot] Re: Logins

2022-11-29 Thread info
I created T324000 for cookie improvements. Best xqt > Am 28.11.2022 um 21:52 schrieb Bináris : > >  > I made a workaround so that I don't heve to log in all the time. :-) > swap.bat is: > ren other.lwp temp.lwp > ren pywikibot.lwp other.lwp > ren temp.lwp pywikibot.lwp > del temp.lwp > > So

[pywikibot] Re: Logins

2022-11-29 Thread Bináris
Thank you! How does pwb work for you without .py? ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org

[pywikibot] Re: pywikibot is making a mockery of my tests

2022-11-29 Thread Roy Smith
Ah, I've got this. The problem is that pywikibot.Site isn't a class, it's a factory function that returns cached instances of APISite. It looks like if you want to mock Site, you need to do: mock_Site = mocker.patch('pywikibot.site.APISite', autospec=True) or this works too (and is

[pywikibot] Re: Logins

2022-11-29 Thread info
This is Windows driven where .py is associated with Python.exe which was set during installation. Von meinem iPhone gesendet > Am 29.11.2022 um 16:38 schrieb Bináris : > >  > Thank you! > How does pwb work for you without .py? > ___ > pywikibot

[pywikibot] Re: pywikibot is making a mockery of my tests

2022-11-29 Thread Bináris
OK, thank you, that's a correct answer, and means that the question was valid. :-) ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org

[pywikibot] Re: pywikibot is making a mockery of my tests

2022-11-29 Thread Bináris
I did not tell anything like this. The question mark indacates that it was a question. You personally were mislead by this capitalization, and I am thankful that you discovered this for us, and others don't have to suffer. I just want to understand things. Russell Blau ezt írta (időpont: 2022.

[pywikibot] Re: pywikibot is making a mockery of my tests

2022-11-29 Thread Roy Smith
That's a good observation, thanks, but fixing that doesn't change anything. This: def test_ip(mocker): mock_IPv4Address = mocker.patch('ipaddress.IPv4Address', autospec=True) ip = mock_IPv4Address('1.2.3.4') assert ip.xxyyzz fails in exactly the same way. > On Nov 28, 2022, at

[pywikibot] Re: pywikibot is making a mockery of my tests

2022-11-29 Thread Bináris
Roy Smith ezt írta (időpont: 2022. nov. 29., K, 17:26): > Ah, I've got this. The problem is that pywikibot.Site isn't a class, it's > a factory function that returns cached instances of APISite. > Should it not have a lower case name in this case?

[pywikibot] Re: pywikibot is making a mockery of my tests

2022-11-29 Thread Russell Blau
Oh yes. Please, please break every single script written by every user, just so we can have perfect capitalization style.   From: Bináris Sent: Tuesday, November 29, 2022 11:32 AMTo: Pywikibot discussion list Subject: [pywikibot] Re: pywikibot is making a

[Pywikipedia-bugs] [Maniphest] [Commented On] T323812: Improve content structure and navigation

2022-11-29 Thread KBach
KBach added a comment. Added changes intended to unify the usage of headline syntax in the docs. The rules I tried to apply are: - Every index page should use the headline syntax in the following order: 1. `#` with overline 2. `*` with overline 3. `=` 4. `-` 5. `^`

[Pywikipedia-bugs] [Maniphest] [Triaged] T324000: Password from cookies is lost when a user changes

2022-11-29 Thread Xqt
Xqt triaged this task as "Medium" priority. TASK DETAIL https://phabricator.wikimedia.org/T324000 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Tgr, Aklapper, binbot, Xqt, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH,

[Pywikipedia-bugs] [Maniphest] [Created] T324000: Password from cookies is lost when a user changes

2022-11-29 Thread Xqt
Xqt created this task. Xqt added projects: Pywikibot, Pywikibot-login.py. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **Feature summary**: We can have multiple accounts with pywikibot but if a user is changed, the session access authoization

[Pywikipedia-bugs] [Maniphest] [Commented On] T323812: Improve content structure and navigation

2022-11-29 Thread gerritbot
gerritbot added a comment. Change 861831 had a related patch set uploaded (by KBach; author: KBach): [pywikibot/core@tests] [doc] Clean up content structure and unify headline syntax https://gerrit.wikimedia.org/r/861831 TASK DETAIL https://phabricator.wikimedia.org/T323812

[Pywikipedia-bugs] [Maniphest] [Updated] T323812: Improve content structure and navigation

2022-11-29 Thread gerritbot
gerritbot added a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T323812 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: KBach, gerritbot Cc: whym, pywikibot-bugs-list, Aklapper, binbot, Xqt, Dvorapa, KBach, Adamm71,

[Pywikipedia-bugs] [Maniphest] [Updated] T71283: dualism between user and sysop needs to be overtaken

2022-11-29 Thread Xqt
Xqt added a subtask: T324000: Password from cookies is lost when a user changes. TASK DETAIL https://phabricator.wikimedia.org/T71283 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Huji, Xqt Cc: Xqt, Stanglavine, Urbanecm, Dvorapa, Huji, Dalba,

[Pywikipedia-bugs] [Maniphest] [Updated] T324000: Password from cookies is lost when a user changes

2022-11-29 Thread Xqt
Xqt added a parent task: T71283: dualism between user and sysop needs to be overtaken. TASK DETAIL https://phabricator.wikimedia.org/T324000 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Dalba, Tgr, Aklapper, binbot, Xqt,

[Pywikipedia-bugs] [Maniphest] [Commented On] T323812: Improve content structure and navigation

2022-11-29 Thread gerritbot
gerritbot added a comment. Change 861831 **merged** by jenkins-bot: [pywikibot/core@tests] [doc] Clean up content structure and unify headline syntax https://gerrit.wikimedia.org/r/861831 TASK DETAIL https://phabricator.wikimedia.org/T323812 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Updated] T323812: Improve content structure and navigation

2022-11-29 Thread Maintenance_bot
Maintenance_bot removed a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T323812 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: KBach, Maintenance_bot Cc: whym, pywikibot-bugs-list, Aklapper, binbot, Xqt, Dvorapa, KBach,

[Pywikipedia-bugs] [Maniphest] [Commented On] T324000: Password from cookies is lost when a user changes

2022-11-29 Thread gerritbot
gerritbot added a comment. Change 861895 had a related patch set uploaded (by Xqt; author: Xqt): [pywikibot/core@master] [IMPR] Create a cookie file for each account https://gerrit.wikimedia.org/r/861895 TASK DETAIL https://phabricator.wikimedia.org/T324000 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Updated] T324000: Password from cookies is lost when a user changes

2022-11-29 Thread gerritbot
gerritbot added a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T324000 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, gerritbot Cc: Dalba, Tgr, Aklapper, binbot, Xqt, pywikibot-bugs-list, Adamm71, Jersione,

[Pywikipedia-bugs] [Maniphest] [Commented On] T324000: Password from cookies is lost when a user changes

2022-11-29 Thread Xqt
Xqt added a comment. Behaviour after this change: D:\pwb\GIT\core>pwb shell Welcome to the Pywikibot interactive shell! >>> s1 = pywikibot.Site(user='Xqtest') >>> s2 = pywikibot.Site(user='Xqtools') >>> s2.login() WARNING: No user is logged in on site wikipedia:de

[Pywikipedia-bugs] [Maniphest] [Started] T324000: Password from cookies is lost when a user changes

2022-11-29 Thread Xqt
Xqt claimed this task. Xqt changed the task status from "Open" to "In Progress". TASK DETAIL https://phabricator.wikimedia.org/T324000 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Dalba, Tgr, Aklapper, binbot, Xqt, pywikibot-bugs-list,

[Pywikibot-commits] [Gerrit] ...core[master]: [doc] fix documentation of generate_user_files

2022-11-29 Thread Xqt (Code Review)
Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/861479 ) Change subject: [doc] fix documentation of generate_user_files .. [doc] fix documentation of generate_user_files Change-Id: