Edgewall Software

Changes between Version 1 and Version 2 of TracDev/UnitTests


Ignore:
Timestamp:
May 18, 2005, 3:21:08 PM (19 years ago)
Author:
Christopher Lenz
Comment:

Add link back to TracDev

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/UnitTests

    v1 v2  
    3838
    3939The 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----
     42See also: TracDev