Closed Bug 1920610 Opened 1 year ago Closed 1 year ago

moz-phab mocks are not calling `assert_` methods correctly resulting in a no-op

Categories

(Conduit :: moz-phab, defect, P3)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sheehan, Assigned: sheehan)

Details

Attachments

(1 file)

Some of the moz-phab mocks are calling methods like called_once instead of assert_called_once. Since the objects are mocks, these are no-ops, and are effectively testing nothing. In newer versions of our testing libraries the incorrect method name results in an exception in the test suite.

In newer versions of Python, these misnamed mock calls trigger
failures. In the current versions they are effectively not
doing anything. Remove some assert calls since they fail when
called correctly, but don't test anything meaningful.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Severity: -- → S4
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: