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

2022-11-28 Thread info
Just an idea but I haven’t verified: BaseSite has a __getattr__ method defined which delegates methods to its Family class. Maybe mock.patch has a side effect which leads to that behaviour you described due to this method. To verify you could comment out this method and test again. Best xqt >

[Pywikibot-commits] [Gerrit] ...core[master]: [FEAT] Add a -textfile parameter to fetch the text from a file

2022-11-28 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/860977 ) Change subject: [FEAT] Add a -textfile parameter to fetch the text from a file .. [FEAT] Add a -textfile parameter to fetch the

[pywikibot] pywikibot is making a mockery of my tests

2022-11-28 Thread Roy Smith
I've got: platform darwin -- Python 3.9.13, pytest-7.2.0, pluggy-1.0.0 rootdir: /Users/roy/dev/dyk-tools, configfile: src/pages/pytest.ini plugins: mock-3.10.0, socket-0.5.1 When I run the following: def test_ip(mocker): mock_IPv4Address = mocker.patch('ipaddress.IPv4Address',

[pywikibot] Re: Logins

2022-11-28 Thread 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 I have to type swap and everything is fine. But I still don't know if I have to use both accounts in one script. In

[pywikibot] Re: Logins

2022-11-28 Thread info
Thank you for this example. I’ll have a look on this issue and will try to find a solution. Best xqt Von meinem iPhone gesendet > Am 28.11.2022 um 20:38 schrieb Bináris : > >  > > Yes. BinBot is the bot account and Bináris is the admin account. The second > login throws out the previous

[pywikibot] Re: Logins

2022-11-28 Thread Bináris
I found BinBot only in pywikibot.lwp. Now I have logged in again as Bináris with the above command. pywikibot.lwp (with ctrl f) contains Bináris, but does not contain BinBot. For some reason only one user is in it at a time. ___ pywikibot mailing list --

[pywikibot] Re: Logins

2022-11-28 Thread Bináris
Yes. BinBot is the bot account and Bináris is the admin account. The second login throws out the previous one. Respectively: c:\Pywikibot>python pwb.py -user:Bináris login -all ERROR: wikipedia:* is not a valid site, please remove it from your user-config Password for user Bináris on wikipedia:hu

[pywikibot] Re: Logins

2022-11-28 Thread info
They are stored in pywikibot.lwp file in the config.datafilepath. Have you used the -user option together with login e.g. pwb -user:Foo login -all ? Best xqt > Am 28.11.2022 um 11:41 schrieb Bináris : > >  > Where are the logins stored? In compat they had an obvious directory. Now I >

[Pywikipedia-bugs] [Maniphest] [Retitled] T323910: badcontinue api response if timestamp is copied from continue

2022-11-28 Thread Xqt
Xqt renamed this task from "pywikibot badcontinue api response" to "badcontinue api response if timestamp is copied from continue". TASK DETAIL https://phabricator.wikimedia.org/T323910 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Xqt,

[Pywikipedia-bugs] [Maniphest] [Commented On] T323910: pywikibot badcontinue api response

2022-11-28 Thread Xqt
Xqt added a comment. I also tested to continue with MW timestamp instead of ISO format;

[Pywikipedia-bugs] [Maniphest] [Raised Priority] T323910: pywikibot badcontinue api response

2022-11-28 Thread Xqt
Xqt raised the priority of this task from "High" to "Needs Triage". TASK DETAIL https://phabricator.wikimedia.org/T323910 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Xqt, Aklapper, pywikibot-bugs-list, MisterSynergy, PotsdamLamb,

[Pywikipedia-bugs] [Maniphest] [Updated] T323910: pywikibot badcontinue api response

2022-11-28 Thread Xqt
Xqt added a project: MediaWiki-Action-API. Xqt added a comment. I was able to reproduce it via request url as follows:

[Pywikipedia-bugs] [Maniphest] [Updated] T323910: pywikibot badcontinue api response

2022-11-28 Thread Xqt
Xqt added a project: Upstream. TASK DETAIL https://phabricator.wikimedia.org/T323910 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Xqt, Aklapper, pywikibot-bugs-list, MisterSynergy, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra,

[Pywikipedia-bugs] [Maniphest] [Triaged] T323910: pywikibot badcontinue api response

2022-11-28 Thread Xqt
Xqt triaged this task as "High" priority. Xqt added a comment. This exception is only raised it sortby parameter is 'timestamp' TASK DETAIL https://phabricator.wikimedia.org/T323910 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Xqt,

[pywikibot] Re: What IDE for Mac desktop?

2022-11-28 Thread Roy Smith
Thanks for the suggestion. I already had an old version of Eclipse on my laptop, so I made an attempt to use that. After a couple rounds of trying to get it updated to something that would run on my current OS and eventually getting trapped in JVM dependency hell, I swallowed my pride about

[Pywikipedia-bugs] [Maniphest] [Created] T323910: pywikibot badcontinue api response

2022-11-28 Thread MisterSynergy
MisterSynergy created this task. MisterSynergy added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **Steps to replicate the issue** (include links if applicable): - Use API via pywikibot in a way that requires continuation

[Pywikipedia-bugs] [Maniphest] [Updated] T271083: New user welcome bot on the Konkani Wikipedia

2022-11-28 Thread Xqt
Xqt added a project: Pywikibot-Flow. TASK DETAIL https://phabricator.wikimedia.org/T271083 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Peachey88, Xqt, Aklapper, The_Discoverer, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01,

[pywikibot] Logins

2022-11-28 Thread Bináris
Where are the logins stored? In compat they had an obvious directory. Now I searched it a lot, but did not find. Whenever I run login.py, the previous account is thrown out, so I cannot comfortably use two accounts. Is it on purpose? -- Bináris ___

[pywikibot] Re: What IDE for Mac desktop?

2022-11-28 Thread Dominic Walden
You could try lsp-mode or eglot, which allow Emacs to use the same Language Server Protocol that other IDEs (e.g. VSCode) use. https://github.com/emacs-lsp/lsp-mode https://github.com/joaotavora/eglot Dom Roy Smith writes: > I never thought I'd ever write this, but after close to 40 years of