|
[Webware-checkins] CVS: Webware/MiddleKit/Tests/MKObjRefReuse.mkmodel TestSamples.py,1.1,1.2
From: Chuck Esterbrook <echuck@us...> - 2002-05-03 14:26
|
Update of /cvsroot/webware/Webware/MiddleKit/Tests/MKObjRefReuse.mkmodel
In directory usw-pr-cvs1:/tmp/cvs-serv11738/Tests/MKObjRefReuse.mkmodel
Modified Files:
TestSamples.py
Log Message:
- Remove ObjectStore.Store var which referred to the first store that happened to be created.
- Remove the store arg to MiddleObject.__init__(store) which was little used and confusing.
- Test suite clean ups.
- Make MKMultipleStores test having 2 different stores. This works now.
- Can now have two WebKit contexts that use MiddleKit without problems.
- Add MKMultipleStores to default set of test suites.
Index: TestSamples.py
===================================================================
RCS file: /cvsroot/webware/Webware/MiddleKit/Tests/MKObjRefReuse.mkmodel/TestSamples.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TestSamples.py 19 Feb 2001 03:30:00 -0000 1.1
--- TestSamples.py 3 May 2002 14:26:31 -0000 1.2
***************
*** 6,12 ****
'bazAttr=%r, type(bazAttr)=%r' % (bazAttr, type(bazAttr))
! def test():
! from MiddleKit.Run.ObjectStore import Store as store
!
foos = store.fetchObjectsOfClass('Foo')
assert len(foos)==2
--- 6,10 ----
'bazAttr=%r, type(bazAttr)=%r' % (bazAttr, type(bazAttr))
! def test(store):
foos = store.fetchObjectsOfClass('Foo')
assert len(foos)==2
|
| Thread | Author | Date |
|---|---|---|
| [Webware-checkins] CVS: Webware/MiddleKit/Tests/MKObjRefReuse.mkmodel TestSamples.py,1.1,1.2 | Chuck Esterbrook <echuck@us...> |