def setUpClass(cls): super(BaseViewsTestWithImageset, cls).setUpClass() if not hasattr(BaseViewsTestWithImageset, 'imageset_folder'): # Create folder and LMDBs for all test classes BaseViewsTestWithImageset.imageset_folder = tempfile.mkdtemp() BaseViewsTestWithImageset.test_image = create_lmdbs(BaseViewsTestWithImageset.imageset_folder) cls.created_datasets = []
def setUpClass(cls): super(BaseViewsTestWithImageset, cls).setUpClass() if not hasattr(BaseViewsTestWithImageset, 'imageset_folder'): # Create folder and LMDBs for all test classes BaseViewsTestWithImageset.imageset_folder = tempfile.mkdtemp() BaseViewsTestWithImageset.test_image = create_lmdbs( BaseViewsTestWithImageset.imageset_folder) cls.created_datasets = []
def setUpClass(cls): super(BaseViewsTestWithImageset, cls).setUpClass() cls.imageset_folder = tempfile.mkdtemp() # create imageset cls.test_image = create_lmdbs(cls.imageset_folder) cls.created_datasets = []