[tests] further fix Tester object has no attribute '_testMethodName' (#35781)

* bug fix

* update with more cases

* more entries

* Fix

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
Fanli Lin
2025-01-29 23:05:33 +08:00
committed by GitHub
parent ec7790f0d3
commit f0ae65c198
57 changed files with 57 additions and 110 deletions

View File

@@ -33,7 +33,7 @@ if is_vision_available():
from transformers import VivitImageProcessor
class VivitImageProcessingTester(unittest.TestCase):
class VivitImageProcessingTester:
def __init__(
self,
parent,
@@ -50,7 +50,6 @@ class VivitImageProcessingTester(unittest.TestCase):
image_std=[0.5, 0.5, 0.5],
crop_size=None,
):
super().__init__()
size = size if size is not None else {"shortest_edge": 18}
crop_size = crop_size if crop_size is not None else {"height": 18, "width": 18}