[tests] fix "Tester object has no attribute '_testMethodName'" (#34910)
* add more cases * fix method not found in unittest Signed-off-by: Lin, Fanli <fanli.lin@intel.com> * fix more cases * add more models * add all * no unittest.case * remove for oneformer * fix style --------- Signed-off-by: Lin, Fanli <fanli.lin@intel.com>
This commit is contained in:
@@ -39,7 +39,7 @@ if is_vision_available():
|
||||
from PIL import Image
|
||||
|
||||
|
||||
class OneFormerImageProcessorTester(unittest.TestCase):
|
||||
class OneFormerImageProcessorTester:
|
||||
def __init__(
|
||||
self,
|
||||
parent,
|
||||
|
||||
@@ -59,7 +59,7 @@ def prepare_metadata(class_info_file, repo_path="shi-labs/oneformer_demo"):
|
||||
return metadata
|
||||
|
||||
|
||||
class OneFormerProcessorTester(unittest.TestCase):
|
||||
class OneFormerProcessorTester:
|
||||
def __init__(
|
||||
self,
|
||||
parent,
|
||||
|
||||
Reference in New Issue
Block a user