Changes between Version 1 and Version 2 of TracDev/UnitTests
- Timestamp:
- May 18, 2005, 3:21:08 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/UnitTests
v1 v2 38 38 39 39 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. 40 41 ---- 42 See also: TracDev