Page MenuHomePhabricator

Fix or drop disabled unit tests in Scap
Closed, ResolvedPublic

Description

This is a tentative task, pending on Gerrit request https://gerrit.wikimedia.org/r/c/mediawiki/tools/scap/+/688351 being merged. If it's not merged, this task can be closed as invalid.

I had to disable three unit tests by renaming them with a fixme_ prefix, because they failed under Python3 and I couldn't understand what the tests test for or how they work. I chose to disable them rather than block the work.

Event Timeline

LarsWirzenius triaged this task as Medium priority.

The problem is that assert_called() does not exist in Python 3.5. It showed up in 3.6.

Change 702221 had a related patch set uploaded (by Ahmon Dancy; author: Ahmon Dancy):

[mediawiki/tools/scap@master] Fix disabled unit tests in Scap

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

Change 702221 merged by jenkins-bot:

[mediawiki/tools/scap@master] Fix disabled unit tests in Scap

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