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',
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
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
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
>
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 --
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
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
>
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
___
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
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
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
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,
Xqt added a comment.
I also tested to continue with MW timestamp instead of ISO format;
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
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,
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,
Xqt added a project: MediaWiki-Action-API.
Xqt added a comment.
I was able to reproduce it via request url as follows:
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,
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,
19 matches
Mail list logo