|
From: Albertas A. <al...@co...> - 2002-01-16 19:09:01
|
On Wed, Jan 16, 2002 at 03:50:09PM -0200, Leonardo Rochael Almeida wrote: > I took a look at your patch and I was thinking that, instead of > verifying a verbosity component we could have a template collection > name, which would be a directory name to be appended to > 'Products/ZUnit/dtml/TestMonitor/' inside which we would look for dtmls > named "error", "succes", etc. > > So, inside TestMonitor.__init__() we could do something like:: > > dtmlPath = "Products/ZUnit/dtml/TestMonitor/" > if collection: > dtmlPath = dtmlPath + collection + "/" > > self.testError = Globals.HTMLFile(dtmlPath + 'error') > self.testSuccess = Globals.HTMLFile(dtmlPath + 'success') > ... > > What do you guys think? A neat idea in fact. This solution is definitely cleaner than my patch. I even begin to doubt if we need an acquired presentation directory, if it only takes to drop in a new Products/ZUnit/dtml/TestMonitor subdirectory to add a new 'skin'. The test cases still aren't TTW anyway... Albertas |