Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Initial Version and Version 4 of Ticket #1892


Ignore:
Timestamp:
08/28/08 15:53:41 (11 years ago)
Author:
Chris Arndt
Comment:

See  http://docs.turbogears.org/1.1/Testing on how to write test for TG 1.1. You need to create and example model with mutually referencing tables and then write test methods which check if the setUp method of the test class correctly created the model.

The test should go into the turbogears.tests.test_model module.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1892

    • Property Owner changed from anonymous to kskuhlman
    • Property Milestone changed from to 1.1
  • Ticket #1892 – Description

    initial v4  
    1 I have two tables with foreign keys that refer to eachother.  I need to create both tables before I apply the FK constraints. 
     1I have two tables with foreign keys that refer to each other.  I need to create both tables before I apply the FK constraints. 
    22 
    33SQLObject docs describe how to do this here: http://sqlobject.org/FAQ.html#mutually-referencing-tables