Changes between Version 7 and Version 12 of Ticket #2777
- Timestamp:
- 2020-11-24T18:23:14Z (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2777 – Description
v7 v12 1 1 I'd like to clean up our unit tests.. there are a lot of archaic idioms that have crept in (partly because I'm not up-to-date on modern practices, partly because the tests were initially written before those practices were established). Here are some things that come to mind: 2 2 3 * remove the use of `mock` in favor of proper test doubles3 * [ticket:3519 remove the use of `mock` in favor of proper test doubles] 4 4 * switch from trial's TestCase to testtools' TestCase (probably via a base class in one of our common modules) 5 5 * replace JUnit-style assertions (`assertEqual(...)`) with "hamcrest" style assertions (`assertThat(x, Equals(y))`)