Closed Bug 1193335 Opened 9 years ago Closed 9 years ago

[tracker] remove eq_ and ok_

Categories

(Input Graveyard :: Code Quality, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: willkg, Unassigned)

References

Details

We recently switched from nose to py.test. nose had helper functions eq_ and ok_ which we used extensively throughout the test suite. py.test doesn't need these since it does magic things with assert.

This bug tracks all the bugs for removing eq_ and ok_ and replacing them with normal asserts.

Example:

Old:

    eq_(resp.status_code, 200)
    ok_(count > 0)

New:

    assert resp.status_code == 200
    assert count > 0
All done here. Marking as FIXED.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Product: Input → Input Graveyard
You need to log in before you can comment on or make changes to this bug.