Thread: [SQL-CVS] r4633 - SQLObject/branches/1.5/sqlobject/inheritance/tests
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <sub...@co...> - 2013-08-12 14:21:18
|
Author: phd Date: Mon Aug 12 08:21:07 2013 New Revision: 4633 Log: Another fix for tests Modified: SQLObject/branches/1.5/sqlobject/inheritance/tests/test_asdict.py Modified: SQLObject/branches/1.5/sqlobject/inheritance/tests/test_asdict.py ============================================================================== --- SQLObject/branches/1.5/sqlobject/inheritance/tests/test_asdict.py Sun Aug 11 14:06:09 2013 (r4632) +++ SQLObject/branches/1.5/sqlobject/inheritance/tests/test_asdict.py Mon Aug 12 08:21:07 2013 (r4633) @@ -13,26 +13,26 @@ class ManagerAD(InheritablePersonAD): department = StringCol() -class Employee(InheritablePersonAD): +class EmployeeAD(InheritablePersonAD): _inheritable = False position = StringCol() def test_getColumns(): - setupClass([InheritablePersonAD, ManagerAD, Employee]) + setupClass([InheritablePersonAD, ManagerAD, EmployeeAD]) for klass, columns in ( (InheritablePersonAD, ['firstName', 'lastName']), (ManagerAD, ['department', 'firstName', 'lastName']), - (Employee, ['firstName', 'lastName', 'position'])): + (EmployeeAD, ['firstName', 'lastName', 'position'])): _columns = klass.sqlmeta.getColumns().keys() _columns.sort() assert _columns == columns def test_asDict(): - setupClass([InheritablePersonAD, ManagerAD, Employee]) + setupClass([InheritablePersonAD, ManagerAD, EmployeeAD]) InheritablePersonAD(firstName='Oneof', lastName='Authors') ManagerAD(firstName='ManagerAD', lastName='The', department='Dep') - Employee(firstName='Project', lastName='Leader', position='Project leader') + EmployeeAD(firstName='Project', lastName='Leader', position='Project leader') assert InheritablePersonAD.get(1).sqlmeta.asDict() == \ dict(firstName='Oneof', lastName='Authors', id=1) |