self.version = version
def properties(self):
- return ['suite_name', 'version', 'sources_count', 'binaries_count']
+ return ['suite_name', 'version', 'sources_count', 'binaries_count', \
+ 'overrides_count']
def not_null_constraints(self):
return ['suite_name', 'version']
mapper(Override, self.tbl_override,
properties = dict(suite_id = self.tbl_override.c.suite,
- suite = relation(Suite),
+ suite = relation(Suite, \
+ backref=backref('overrides', lazy='dynamic')),
package = self.tbl_override.c.package,
component_id = self.tbl_override.c.component,
component = relation(Component, \
suites = get_architecture_suites('kfreebsd-i386', self.session)
self.assertEqual(2, len(suites))
self.assertTrue(self.suite['lenny'] not in suites)
+ # check overrides
+ self.assertEqual(0, self.suite['lenny'].overrides.count())
def test_poolfiles(self):
'''