Back to index

plone3  3.1.7
conftest.py
Go to the documentation of this file.
00001 # JS unit test support for py.test - (c) 2007 Guido Wesdorp. All rights
00002 # reserved
00003 #
00004 # This software is distributed under the terms of the JSBase
00005 # License. See LICENSE.txt for license text.
00006 
00007 import py
00008 here = py.magic.autopath().dirpath()
00009 
00010 from jsbase.conftest import JSTest, JSChecker, Directory as _Directory
00011 
00012 class Directory(_Directory):
00013     def run(self):
00014         if self.fspath == here:
00015             return [p.basename for p in self.fspath.listdir('test_*') if
00016                     p.ext == '.js']
00017         return super(Directory, self).run()
00018