C:\pwb\GIT\core>py -3.13 -m pwb -lang:en file_tests -v TestSharedFiles.test_non_file_local
tests: max_retries reduced from 15 to 3
test_non_file_local (__main__.TestSharedFiles.test_non_file_local)
Test file page, without local file, existing on the local wiki. ... FAIL
======================================================================
FAIL: test_non_file_local (__main__.TestSharedFiles.test_non_file_local)
Test file page, without local file, existing on the local wiki.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\pwb\GIT\core\tests\file_tests.py", line 149, in test_non_file_local
self.assertEqual(testwp_file.get_file_url(),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
commons_file.get_file_url())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'http[59 chars]1.JPG?utm_source=test.wikipedia.org&utm_campai[29 chars]inal' != 'http[59 chars]1.JPG'
- https://upload.wikimedia.org/wikipedia/commons/5/55/Sepp_Maier_1.JPG?utm_source=test.wikipedia.org&utm_campaign=imageinfo&utm_content=original
+ https://upload.wikimedia.org/wikipedia/commons/5/55/Sepp_Maier_1.JPG
----------------------------------------------------------------------
Ran 1 test in 4.521s
FAILED (failures=1)Description
Description
Details
Details
Related Changes in Gerrit:
| Subject | Author | Repo | Branch | Lines +/- | |
|---|---|---|---|---|---|
| IMPR: Remove UTM tracking parameter in FilePage.get_file_url() | Xqt | pywikibot/core | master | +5 -2 |
Event Timeline
Comment Actions
Change #1257407 had a related patch set uploaded (by Xqt; author: Xqt):
[pywikibot/core@master] IMPR: Remove UTM tracking parameter in FilePage.get_file_url()
Comment Actions
Change #1257407 merged by jenkins-bot:
[pywikibot/core@master] IMPR: Remove UTM tracking parameter in FilePage.get_file_url()