[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:
Fanli Lin
2024-12-13 21:33:45 +08:00
committed by GitHub
parent 3d213b57fe
commit bdd4201fdb
34 changed files with 34 additions and 34 deletions

View File

@@ -39,7 +39,7 @@ if is_vision_available():
from PIL import Image
class OneFormerImageProcessorTester(unittest.TestCase):
class OneFormerImageProcessorTester:
def __init__(
self,
parent,

View File

@@ -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,