Changes between Version 7 and Version 8 of TracDev/UnitTests
- Timestamp:
- May 11, 2009, 3:59:55 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/UnitTests
v7 v8 45 45 The module [source:/trunk/trac/test.py#latest trac.test] contains a couple of functions and classes that can help writing unit tests. In particular, it provides an {{{InMemoryDatabase}}} class that can be used to test functionality that requires database access, without having to create an actual database on disk. Also there's a very simple factory for [http://c2.com/cgi/wiki?MockObject mock objects], which you can use to create quick substitutes of the "real" objects for testing. 46 46 47 == Optional Dependencies ==48 Some unit tests seem to depend on:47 == Optional Dependencies needed for Functional Tests == 48 Some functional tests integrated into the unit tests seem to depend on: 49 49 * [http://twill.idyll.org/ twill] 50 50 * [http://pytz.sourceforge.net/ pytz]