Page MenuHomePhabricator

OAuthEditTest.test_edit of oauth_tests sometimes fails
Closed, ResolvedPublic

Description

https://github.com/wikimedia/pywikibot/actions/runs/9435688891/job/25989463189

======================================================================
FAIL: test_edit (tests.oauth_tests.OAuthEditTest)
Test editing to a page.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/pywikibot/pywikibot/tests/oauth_tests.py", line 89, in test_edit
    self.assertTrue(p.text.endswith(ts))
AssertionError: False is not true

The reason is that the same page was changed by another task in meantime.

Event Timeline

Xqt triaged this task as High priority.
Xqt moved this task from Backlog to Test failures on the Pywikibot-tests board.

Change #1040812 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [tests] take into account that test page is modified in meantime

https://gerrit.wikimedia.org/r/1040812

Change #1040812 merged by jenkins-bot:

[pywikibot/core@master] [tests] take into account that test page is modified in meantime

https://gerrit.wikimedia.org/r/1040812